64
6 F 3 B 0 3 6 2
5.5 Sample PC Link Protocol Transmission Program
This section presents a sample program that uses PC link protocol transmission.
This program creates increment data within the local port and writes it to the remote port's
registers. Next it reads out the same area and compares it with the data within the local port to
check that the function succeeded.
This program assumes that the parameter setup request and the operating mode control request
(message transmission permission) have already completed.
Local port IP address: 133. 113. 98. 10 (85H. 71H. 62H 0AH)
Local port message transmission UDP port number: 2000
RW090: Execution count specification (1 to 32767)
RW091: Operation when a comparison error occurs (continue: 0, stop: 1)
RW092: Transfer register data length (1 to 485 words)
RW093: Write time transfer source register type
RW094: Write time transfer source register start number
RW095: Write time transfer destination register type/read time readout source register type
RW096: Write time transfer destination register start number/read time readout source
register start number
RW097: Read time storage register type
RW098: Read time storage register start number
W0991, W0990: Remote destination IP address
133. 113. 98. 20 (85H. 71H. 62H. 14H)
W0992: Remote destination message transmission UDP port number.......... 1025
This ladder program is executed by turn on the R0520 A contact.