Unsolicited Messages
For detailed information about the Unsolicited Message format, see the TCP/IP Ethernet Communications for the Series 90-70 Programmable Controller (GFK-1004).
The following is an example of a COMREQ Function Block and a COMREQ Command Block that will:
- Establish a channel (channel 7 in this example) to a remote Host application server at IP address 192.168.0.4.
- Return the Communication Request Status (CRS) word to %R10.
- Send local PLC registers %R50-%R57 to the remote Host.
- Repeat the send ten (10) times once every 7 seconds with a time-out of 500 ms. for each read.
The COMREQ function block for this example is:
The COMREQ Command Block for this example is:
Address | DEC | Hex | Description |
%R300 | 0017 | 0011 | Length of Send Information Report Data Block |
%R301 | 0000 | 0000 | Always zero |
%R302 | 0008 | 0008 | Memory type or CRS word (%R) |
%R303 | 0009 | 0009 | CRS word address minus 1 (%R10) |
%R304 | 0000 | 0000 | Reserved |
%R305 | 0000 | 0000 | Reserved |
%R306 | 2010 | 07DA | Send Information Report Channel Command number |
%R307 | 0007 | 0007 | Channel number (7) |
%R308 | 0010 | 000A | Number of repetitions (10) |
%R309 | 0003 | 0003 | Time unit for send period (3 = seconds) |
%R310 | 0007 | 0007 | Minimum interval between host accesses (7 seconds) |
%R311 | 0050 | 0032 | Time-out on each individual host transfer response (500 ms) |
%R312 | 0008 | 0008 | Memory type from which to send data (%R) |
%R313 | 0050 | 0032 | Starting address from which to send data (%R50) |
%R314 | 0008 | 0008 | Number of memory units (8 registers) |
%R315 | 0000 | 0000 | Reserved |
%R316 | 0000 | 0000 | Reserved |
%R317 | 0001 | 0001 | Remote network address type (IP address) |
%R318 | 0004 | 0004 | Remote network address length in words (4) |
%R319 | 0192 | 00c0 | Remote Host - Register 1 of IP address (192) |
%R320 | 0168 | 00A8 | Remote Host - Register 2 of IP address (168) |
%R321 | 0000 | 0000 | Remote Host - Register 3 of IP address (0) |
%R322 | 0002 | 0002 | Remote Host - Register 4 of IP address (2) |