|
| 1 | +# Allen-Bradley DF1 |
| 2 | + |
| 3 | +DF1 is a proprietary communication protocol developed by Rockwell Automation, primarily used for data exchange between its Allen Bradley series PLCs (Programmable Logic Controllers) and other devices. |
| 4 | +The Neuron Allen Bradley DF1 plugin supports point-to-point communication and data transmission through serial communication lines. |
| 5 | + |
| 6 | +## Add Device |
| 7 | + |
| 8 | +Go to **Configuration -> South Devices**, then click **Add Device** to add the driver. Configure the following settings in the popup dialog box. |
| 9 | + |
| 10 | +- Name: The name of this device node. |
| 11 | +- Plugin: Select the **Allen-Bradley DF1** plugin. |
| 12 | + |
| 13 | +## Device Configuration |
| 14 | + |
| 15 | +After clicking **Create**, you will be redirected to the **Device Configuration** page, where we will set up the parameters required for Neuron to establish a connection with the northbound application. You can also click the device configuration icon on the southbound device card to enter the **Device Configuration** interface. |
| 16 | + |
| 17 | +| Parameter | Description | |
| 18 | +| -------------------- | ------------------------------------------------------- | |
| 19 | +| **Recv Timeout** | The time of the system waits for a device to respond to a command. | |
| 20 | +| **Send Interval** | The waiting time between sending each read/write command. Some serial devices may discard certain commands if they receive consecutive commands in a short period of time. | |
| 21 | +| **Serial Port** | The path to the serial device when using a serial connection, e.g., /dev/ttyS0 in Linux systems. | |
| 22 | +| **Stop Bits** | Serial connection parameter. | |
| 23 | +| **Parity** | Serial connection parameter. | |
| 24 | +| **Baud Rate** | Serial connection parameter. | |
| 25 | +| **Data Size** | Serial connection parameter. | |
| 26 | + |
| 27 | +## Configure Data Groups and Tags |
| 28 | + |
| 29 | +After the plug-in is added and configured, the next step is to establish communication between your device and Neuron by adding groups and tags to the Southbound driver. |
| 30 | + |
| 31 | +Once device configuration is completed, navigate to the **South Devices** page. Click on the device card or device row to access the **Group List** page. Here, you can create a new group by clicking on **Create**, then specifying the group name and data collection interval. |
| 32 | + |
| 33 | +Upon successfully creating a group, click on its name to proceed to the **Tag List** page. This page allows you to add device tags for data collection. You'll need to provide information such as the tag address, attributes, and data type. |
| 34 | + |
| 35 | +For information on general configuration items, see [Connect to Southbound Devices](../south-devices.md). The subsequent section will concentrate on configurations specific to the driver. |
| 36 | + |
| 37 | +### Data Types |
| 38 | + |
| 39 | +* INT16 |
| 40 | +* UINT16 |
| 41 | +* INT32 |
| 42 | +* UINT32 |
| 43 | +* FLOAT |
| 44 | +* BIT |
| 45 | +* STRING |
| 46 | + |
| 47 | +### Address format |
| 48 | + |
| 49 | +> FILE NUM:ELEM[.BIT][#ENDIAN]\[.LEN\[H]\[L]] |
| 50 | +
|
| 51 | +For example, N7:0 |
| 52 | + |
| 53 | +#### **FILE** |
| 54 | + |
| 55 | +Required, File is the type or the file. |
| 56 | +| FILE | FILE TYPE | |
| 57 | +| ---- | --------- | |
| 58 | +| U | STATUS | |
| 59 | +| B | BIT | |
| 60 | +| T | TIMER | |
| 61 | +| C | COUNTER | |
| 62 | +| R | COUNTROL | |
| 63 | +| N | INTEGER | |
| 64 | +| F | FLOAT | |
| 65 | +| S | STRING | |
| 66 | +| A | ASCII | |
| 67 | + |
| 68 | +#### NUM |
| 69 | + |
| 70 | +Required, NUM is the number or the file. |
| 71 | + |
| 72 | +#### ELEM |
| 73 | + |
| 74 | +Required, ELEM is the number or the elem. |
| 75 | + |
| 76 | + |
| 77 | +#### **.BIT** |
| 78 | + |
| 79 | +Optional, specify a specific bit in a register, as: |
| 80 | +| Address | Data Type | Description | |
| 81 | +| ----------- | ------- | --------------------------------------------------- | |
| 82 | +| N7:0.0 | bit | Refers to INT FILE 7 , address 0, bit 0. | |
| 83 | +| N7:0.15 | bit | Refers to INT FILE 7 , address 0, bit 15. | |
| 84 | + |
| 85 | +#### **#ENDIAN** |
| 86 | + |
| 87 | +Optional, byte order, applicable to data types int16/uint16/int32/uint32/float/, see the table below for details. |
| 88 | +| Symbol | Byte Order | Supported Data Types | Note | |
| 89 | +| --- | ------- | ------------------ | ----- | |
| 90 | +| #B | 2,1 or 8,7,6,5,4,3,2,1 | int16/uint16 | | |
| 91 | +| #L | 1,2 or 1,2,3,4,5,6,7,8 | int16/uint16 | Default byte order if not specified | |
| 92 | +| #LL | 1,2,3,4 | int32/uint32/float | Default byte order if not specified | |
| 93 | +| #LB | 2,1,4,3 | int32/uint32/float | | |
| 94 | +| #BB | 3,4,1,2 | int32/uint32/float | | |
| 95 | +| #BL | 4,3,2,1 | int32/uint32/float | | |
| 96 | + |
| 97 | +#### .LEN\[H]\[L] |
| 98 | + |
| 99 | +When the data type is STRING, .LEN is a required field, indicating the number of bytes the string occupies. Each register contains two storage methods: H and L, as shown in the table below. |
| 100 | +| Symbol | Description | |
| 101 | +| --- | ------------------------------------- | |
| 102 | +| H | One register stores two bytes, with the high byte first | |
| 103 | +| L | One register stores two bytes, with the low byte first | |
| 104 | + |
| 105 | +::: tip |
| 106 | +The address data for the T C R region is six bytes. |
| 107 | +The first two bytes can use bit or int16, uint16 types; |
| 108 | +The middle two bytes of data need to be of type int16 or uint16, with the address suffix added .PRE; |
| 109 | +The last two bytes of data should be of type int16 or uint16, with the address suffix added .ACC。 |
| 110 | +For example, T2:1.ACC |
| 111 | +::: |
| 112 | + |
| 113 | +## Data Monitoring |
| 114 | + |
| 115 | +After completing the point configuration, you can click **Monitoring** -> **Data Monitoring** to view device information and control devices. For details, refer to [Data Monitoring](../../../admin/monitoring.md). |
0 commit comments