PLC-5/250: logical addresses

Use a logical address to access a bit, element, sub-element, data block, file, or I/O image bit. The format of a logical address corresponds directly to the location in data storage. For example: 1N23:0.
To specify a logical address:
  1. Specify the module number, data section, and data file number (0-9999). If you do not specify a module number, PLC-5/250 A.I. Series assumes you mean the current logic processor. Valid module numbers depend on the module type.
    Module type:
    Valid module numbers:
    RM
    0
    RS
    1-4
    LP
    1-4
The following table lists the valid data section specifiers.
Section type:
Description:
Module:
AS
adapter status
(RS module)
B
binary
(RM and LP modules)
BR
block transfer read control block*
(RS module)
BTD
block transfer data*
(RS module)
BW
block transfer write control block*
(RS module)
C
counter
(RM and LP modules)
F
floating point
(RM and LP modules)
I
input image
(RS module)
IS
internal storage
(RS module)
L
long integer
(RM and LP modules)
MSG
message control block
(RM and LP modules)
N
integer
(RM and LP modules)
O
output image
(RS module)
PD
PID control
(RM and LP modules)
R
control
(RM and LP modules)
S
status
(RM and LP modules)
SD
shared data
(only with a CVIM)
ST
string
(RM and LP modules)
T
timer
(RM and LP modules)
* Only include the RS module number when addressing
BR
,
BTD
, and
BW
data types at the bit level. You do not need an RS number when using these types in a block-transfer instruction.
  1. Include a colon (:) followed by the element number. You can substitute a semi-colon (;) for the colon. The software will replace the semi-colon after you enter the address.
  2. If you want to specify a bit number, include a front slash (/) or a period (.) followed by the bit number.
  3. If you do not specify a bit, you can specify a range of bits (00-17) within braces ({ }). Separate the start bit and end bit with two periods (..).
  4. If you want to address a member, such as a done bit or an accumulated value, include a period (.) followed by the member's mnemonic.
  5. If you want to address a sub-member (bit within a member), include a left bracket ([), followed by the sub-member (bit number) you want, then a right bracket (]). If the address does not have a pre-defined mnemonic, include a period (.), followed by DATA, a left bracket ([), the word you want, and a right bracket (]). This applies only to MSG, PD, and SBT data types.
The following table shows examples of addressing different data structures.
To specify the address of a:
Use these parameters:
Where:
Is the:
Element
1N9:22
1
RM module number (1-4 for LP module)
N
Section ID
9
File number
:
Element delimiter
22
Element number
File
2F8:
2
Module number
F
Section ID
8
File number
Bit within a binary file
4B3/245
/
Bit delimiter
245
Bit number
Bit range within a file
413:19{07..00)
07..00
Bit range
Bit within a control file
1R6:7.DN
.
Member delimiter
DN
Bit mnemonic
Member in a counter file
0C0:15.ACC
.
Member delimiter
ACC
Member specifier
Word in a member (without a mnemonic) in a message file
0MSG0:0.DATA[10]
.
Member delimiter
DATA
Member specifier
[
Left word delimiter
10
Word of member
]
Right word delimiter
Use the slash (
/
) delimiter only for addressing bit numbers. Do not use it to address data bits by mnemonic. Never use the slash for a division symbol. The division symbol is the pipe or vertical bar character (|).
The following table explains the proceeding examples shown.
Address:
Type of Address:
Explanation:
1N9:22
Element
LP module 1, integer file 9, element 22
2F8:
File
LP module 2, floating-point file 8
4B3/245
Bit
LP module 4, binary file 3, bit 245
4B3:19{07..00}
Bit Range
LP module 4, binary file 3, element 19, bits 00-07; another possible format is B3/315
1R6:7.DN
Bit Member
LP module 1, control file 6, element 7, done bit
0C0:15.ACC
Member
RM module, counter file 0, element 15, accumulated value
0MSG0:0.DATA[10]
Word in a Member
RM module, message file 0, element 0, member DATA, word 10
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal