Allen Bradley DF1 (Serial)
For creating a new device, go to [Tools] → [I/O Devices] or the icon in the main toolbar.
I/O Device Name: Give a device name.
I/O Device Type: Select ‘Serial Device’. The device name will be used in the ‘Station Name’ and tag configuration of the database.
Select [Ok] for the ‘Serial Communication Configuration’ dialog box to appear.
Select ‘Allen Bradley DF1’ from the ‘Device Type’ dropdown menu, and choose the appropriate parameters. These parameters should be matched with the PLC.
Communication parameters should be configured as shown in the following table:
Baud Rate | Must be matched with the one of PLC. |
---|---|
Parity | None |
Data Bits | 8 Bits |
Stop Bits | 1 Bit |
Comm. Type | RS232 |
Move to the [Station] tab of the ‘Serial Communication Configuration’ dialog box. All the connected PLC stations can be configured and registered to the Xpanel.
Each field can be configured as followed:
Station Name | Give a name to the PLC. This name will be used in the database window accompanied by the ‘Device Name’. |
Station Type | Choose the ‘SLC500/MicroLogix’ (no other type can be selected). |
Network ID | This field has no meaning in this driver (ignored in runtime). |
Station No. | This number must be matched with the one of PLC. |
16Bit Data Swap | This field has no meaning in this driver. |
32Bit Data Swap | This field has no meaning in this driver. |
String Data Swap | This field has no meaning in this driver. |
Using Checksum | This field has no meaning in this driver. |
Comm. Error Message Pop Up | When this item is checked, Xpanel displays a communication error message box for every Rx and Tx error. Otherwise (unchecked), Xpanel does not display a message for communication errors. This message box will close automatically after a few seconds. |
See the Communication Configuration section for more information about the remaining parameters.
Communication Setup: RSLogix
The following picture shows a screenshot of the RSLogix channel configuration. The network address and communication speed (Baud Rate) of the PLC are configured in this dialog box. ‘BCC' must be selected for the ‘Error Detection’ and ‘DF1 Full Duplex’ must be selected for the 'Driver’.
Please note that the data should be matched with the device configuration of Xpanel.
Address Notation
The following table shows the list of devices that can be referenced in the Xpanel database.
Symbol | Bit Range | Word Range | Name |
O | O:0.0/0 – O:30.255/15 | O:0.0 – O:30.255 | Output |
I | I:0.0/0 – I:30.255/15 | I:0.0 – I:30.255 | Input |
S | S:0/0 – S:163/15 | S:0 – S:163 | Status |
B | B3:0/0 – B3:255/15 B9:0/0 – B255:255/15 | B3:0 – B3:255 B9:0 – B255:255 | Binary |
N | N7:0/0 – N7:255/15 N9:0/0 – N255:255/15 | N7:0 – N7:255 N9:0 – N255:255 | Integer |
F | - | F8:0 – F255:255
| Float |
L | - | L9:0 – L255:255
| Long |
ST | - | ST9:0 – ST255:255 | String |
T | T4:0.0/0 – T4:255.2/15 T9:0.0/0 – T255:255.2/15 Txx:nn.0/15 = Enable(EN) Txx:nn.0/14 = Timer Timing(TT) Txx:nn.0/13 = Done(DN) | T4:0.0 – T4:255.2 T9:0.0 – T255:255.2 Txx:nn.1 = Preset Value(PRE) Txx:nn.2 = Accumulated Value(ACC) | Timer |
C | C5:0.0/0 – C5:255.2/15 C9:0.0/0 – C255:255.2/15 Cxx:nn.0/15 = Count up enable(CU) Cxx:nn.0/14 = Count down enable(CD) Cxx:nn.0/13 = Done(DN) Cxx:nn.0/12 = Overflow(OV) Cxx:nn.0/11 = Underflowt(UN) Cxx:nn.0/10 = Update Accumulator(UA) | C5:0.0 – C5:255.2 C9:0.0 – C255:255.2 Cxx:nn.1 = Preset (PRE) Cxx:nn.2 = Accumulated Value(ACC) | Counter |
R | R6:0.0/0 – C6:255.2/15 R9:0.0/0 – R255:255.2/15 Rxx:nn.0/15 = Enable(EN) Rxx:nn.0/14 =Update Enable(EU) Rxx:nn.0/13 = Done(DN) Rxx:nn.0/12 = Stack Empty(EM) Rxx:nn.0/11 = Error(ER) Rxx:nn.0/10 = Upload(UL) Rxx:nn.0/9 = Inhibit(IN) Rxx:nn.0/8 = Found(FD) | R6:0.0 – R6:255.2 R9:0.0 – R255:255.2 Rxx:nn.1 = Length value Rxx:nn.2 = position value | Control |
Communication Cable Wiring