GE 90-30 PLC Switch User Manual


 
3
3-27
GFK-1084B Chapter 3 Programming Communications Requests
Example 2 Command Block–Example using a Network Address name
This example is the same as example 1 except that the Network Address name of the
Remote PLC (“PLC_1aa”) is used instead of its IP address. For more information on
Network Address names, see Appendix F.
Establish a channel (channel 7) to a remote Host application server at IP address 3.0.0.1.
Return the COMM_REQ Status word to %R10. Send local PLC registers %R50–%R57 to
remote host. Repeat the send 10 times once every 7 seconds with a timeout of 500 ms
for each read.
Dec (Hex)
Word 1 00045 (002d) Length of Send Information Report Data Block (45 words)
Word 2 00000 (0000) Always 0 (no–wait mode request)
Word 3 00008 (0008) Memory type of CRS word (%R)
Word 4 00009 (0009) CRS word address minus 1 (%R10)*
Word 5 00000 (0000) Reserved
Word 6 00000 (0000) Reserved
Word 7 02010 (07DA) Send Information Report Channel Command number
Word 8 00007 (0007) Channel number (7)
Word 9 00010 (000A) Number of repetitions (send 10 times)
Word 10 00003 (0003) Time units for send period (3=seconds)
Word 11 00007 (0007) Minimum interval between host accesses (every 7 seconds)
Word 12 00050 (0032) Timeout on each individual transfer response (500 ms)
Word 13 00008 (0008) Local PLC - Memory type from which to send data (%R)
Word 14 00050 (0032) Local PLC - Starting address from which to send data (%R50)
Word 15 00008 (0008) Local PLC - Number of memory units (8 registers)
Word 16 00000 (0000) Reserved
Word 17 00000 (0000) Reserved
Word 18 00003 (0003) Remote Host - Network address type (3=Symbolic Name)
Word 19 00032 (0020) Remote Host - Network address length in words (32)
Word 20 19536 (4c50) Remote Host - Network address name, char 1-2 (PL)
Word 21 16451 (4043) Remote Host - Network address name, char 3-4 (C_)
Word 22 24881 (6131) Remote Host - Network address name, char 5-6 (1a)
Word 23 00097 (0061) Remote Host - Network address name, char 7-8 (a )
Word 24 00000 (0000) Remote Host - Network address name, char 9-10
Word 25 00000 (0000) Remote Host - Network address name, char 11-12
Word 26 00000 (0000) Remote Host - Network address name, char 13-14
Word 27 00000 (0000) Remote Host - Network address name, char 15-16
Word 28 00000 (0000) Remote Host - Network address name, char 17-18
The term local PLC is
used here to identify the
client PLC-the PLC
that initiates the
communications
request.
The term SRTP
Server is used here to
identify the Host
server.