Chapter 7. Programming SRTP Channel CommandsGFK-2224Q January 2017 123Send Information Report (2010)The Send Information Report COMMREQ requests that a particular block of memory within the PLC CPUreference tables be transferred periodically from an Ethernet Interface to a host application SRTP server. TheCommand Block specifies the repetition period, the number of transfers to the server to perform, and thetimeout allowed in waiting for each transfer to complete. The first send is performed immediately, regardlessof the period specified.Example Command BlockEstablish a channel (Channel 7) to a remote Host application server at IP address 10.0.0.1. Return theCOMMREQ Status word to %R10. Send local PLC registers %R50–%R57 to remote host. Repeat the send 10times, once every 7 seconds, with a timeout of 500ms for each transfer.Dec (Hex)Word 1 00017 (0011) Length of Send Information Report Data Block (17words)Word 2 00000 (0000) Always 0 (no–wait mode request)Word 3 00008 (0008) Memory type of COMMREQ status word (%R)Word 413 00009 (0009) COMMREQ status word address minus 1 (%R10)Word 5 00000 (0000) ReservedWord 6 00000 (0000) ReservedWord 7 02010 (07DA) Send Information Report Channel command numberWord 8 00007 (0007) Channel number (7)Word 9 00010 (000A) Number of repetitions (send 10 times)The term localPLC is used hereto identify theclient PLC—thePLC that initiatesthecommunicationsrequest.Word 10 00003 (0003) Time unit for send period (3=seconds)Word 11 00007 (0007) Minimum interval between host accesses (every 7seconds)Word 12 00050 (0032) Timeout on each individual transfer response (500ms)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) ReservedWord 17 00000 (0000) ReservedThe term RemoteHost is used hereto identify theSRTP Host server.Word 18 00001 (0001) Remote Network Address type (IP Address)Word 19 00004 (0004) Remote Network Address length in words (4)Word 20 00010 (000A) Remote Host - Register 1 of IP address (10)Word 21 00000 (0000) Remote Host - Register 2 of IP address (0)Word 22 00000 (0000) Remote Host - Register 3 of IP address (0)Word 23 00001 (0001) Remote Host - Register 4 of IP address (1)(Word 7) Channel Command Number: Word 7 requests that a Send Information Report channel be set up. Ifthe command is processed successfully, it will result in attempting the specified number of transfers from theclient to the server.(Word 8) Channel Number: Word 8 specifies the channel to be used for the send. This value must be in therange of 1–32. If the channel number is out of range, a command error indication is placed in the COMMREQstatus word. If the channel number is the same as a channel already in use, the channel is re-tasked toperform this new command.(Word 9) Number of Send Repetitions: Word 9 specifies the number of transfers to be performed beforeautomatically completing the communications request and closing the channel. If this value is set to 1, only asingle transfer will be issued. If this value is set to 0, transfers will be issued on the requested period until thechannel is aborted.