Allen Bradley Addressing
Addressing:
File-Based Addressing:
Address Format: {File}:{Word}/{Bit}
The PLC Address field requires a specific format to correctly locate the tag within the PLC's memory. Here's the breakdown:
- File: This refers to the data file in the PLC where the tag is stored. Common file types include:
- B: Binary (for individual bits)
- N: Integer
- L: Long
- F: Floating-point
- Word: The word number within the specified file.
- Bit: (Optional) If you are addressing a specific bit within a word, include the bit number after a slash (/).
Example:
- B3:10/7 refers to:
- File: B3 (Binary file 3)
- Word: 10 (the 11th word in the file)
- Bit: 7 (the 8th bit within word 10)
Tag-Name-Based Addressing:
Address Format: Full Tag name in the PLC.
Important Notes:
Selected data type must match the file type for successful read/write operations.
- Bool: reads bits from N File.
- Int (No. of words = 1): reads words from N files
- Int (No. of words = 2): reads int32 from N files or L files.
- Real: reads Floats from F files.