Lpbkexampleplc5msgfilesyncrs5 – Comtrol UP DeviceMaster User Guide User Manual
Page 145

DeviceMaster UP EtherNet/IP User Guide: 2000424 Rev. L
Chapter 5. Programming the PLC - 145
lpbkExamplePlc5MsgFileSyncRS5
5.5.7. lpbkExamplePlc5MsgFileSyncRS5
This example program demonstrates a loop-back RSLogix 5 PLC program using PLC-5 Typed messages in the
Write-to-File-Synced receive method. This program initializes the produced receive and transmit sequence
numbers as well as the consumed receive sequence number at startup and then loops data via a loop-back
plug on the serial port. The data is transmitted via PLC-5 Typed Write data messages and received
automatically via a write to file command from the DeviceMaster UP. The consumed receive sequence
number is updated to match the produced receive sequence number and sent to the DeviceMaster UP to
complete the synchronization process. All sequence numbers are incremented with each message.
The following files apply:
•
lpbkExamplePlc5MsgFileSyncRS5.PC5 – ladder logic in ASCII form.
•
lpbkExamplePlc5MsgFileSyncRS5.SY5 – symbol definitions for RSLogix 5 Version 5.xx.xx.
•
lpbkExamplePlc5MsgFileSyncRS5.SY6 – symbol definitions for RSLogix 5 Version 6.xx.xx.
5.5.8. Configure the DeviceMaster UP for the RSLogix 5 Program
The following procedure configures the DeviceMaster UP for PLC-5 and SLC PLCs. You must perform this
task before you configure and run the example RSLogix 5 program. For more information on the embedded
web pages, see
Chapter 3. Embedded Configuration Pages
1.
Attach a loopback plug to the serial port.
2.
Access the Server Configuration web page. Open PortVision DX, right-click the DeviceMaster UP and
click Webpage or open a browser and type the IP address for the DeviceMaster UP in the Address box.
3.
Click Port n. Where n is the port number.
4.
Set the serial port settings under Serial Configuration to the following values
5.
Set the serial port settings under Serial Packet Identification to the following values.
Field
Setting
Mode
RS-232
Baud
57600
Parity
none
Data Bits
8
Stop Bits
1
Flow Control
none
DTR
off
Rx Timeout Between Packets
200
Field
Settings
STX RX Detect
Set to one byte and Byte 1 to 2.
ETX Rx Detect
Set to one byte and Byte 1 to 3.
STX Tx Append
Set to one byte and Byte 1 to 2.
ETX Tx Append
Set to one byte and Byte 1 to 3.
Strip Rx STX/ETX
Select.
Discard Rx Packets With Errors
Select.
(PLC-5/SLC) Rx MS Byte First
Optionally, select.
(PLC-5/SLC) Tx MS Byte First
Optionally, select.