Allen-Bradley - Programmable Controller Communication Commands (PCCC)
PCCC parameters follow these URL schemas:
pccc://<IP>/<FileType><FileNumber>:<ElementNumber>
pccc://<IP>/<FileType><FileNumber>:<ElementNumber>.<SubElement>
pccc://<IP>/<FileType><FileNumber>:<ElementNumber>.<SubElement>/<bit>
pccc://<IP>/<FileType><FileNumber>:<ElementNumber>/<bit>
IP
IPv4 IP address of the PCCC device, you are trying to connect to. This must be on the same network as the LAN side of the INDAQ interface.
File Type
File Type Name | File Type Id | Default File Number | Description |
---|---|---|---|
Output | O | 0 | Output file type. |
Input | I | 1 | Input file type. |
Status | S | 2 | Status file type. |
Binary | B | 3 | Binary file type. |
Timer | T | 4 | Timer file type. |
Counter | C | 5 | Counter file type. |
Integer | N | 7 | Integer file type. |
Float | F | 8 | Floating point file type. |
File Number
The file number of the tag you are trying to read. This value is usually the default value for the file type above.
Element Number
Which element to read from the file provided.
Sub Element (Optional)
Within the element, which sub element to read from.
Only valid for the following File Types:
- Output
- Input
Bit (Optional)
Only selects the request bit when reading the value.
Only valid for the following File Types:
- Output
- Input
- Status
- Binary
- Integer
Field
When using the Timer/Counter file types, you must also specify which field to read from.
Field Name | Field Id | File Types | Value Type | Description |
---|---|---|---|---|
Done | DN | Timer, Counter | bit | The done bit of the timer/counter. |
Timing | TT | Timer | bit | The timing bit of the timer. |
Enabled | EN | Timer | bit | The enabled bit of the timer. |
Count Up | CU | Counter | bit | The count up bit of the counter. |
Count Down | CD | Counter | bit | The count down bit of the counter. |
Overflow | OV | Counter | bit | The overflow bit of the counter. |
Underflow | UN | Counter | bit | - |
Update Accumulator | UA | Counter | bit | - |
Preset | PRE | Timer, Counter | 16-bit integer | The preset value of the timer/counter. |
Accumulator | ACC | Timer, Counter | 16-bit integer | The accumulated value of the timer/counter. |