4. FUNCTIONS
MELSEC-A
4-11
(2) Variables
and
data
types
The following shows the relationship between the variables and data types that can be used by
the AJ71PB96F/A1SJ71PB96F local OD and the device memory.
Simple
variable Array
variable Record
variable
Bit
device Word
device Bit
device Word
device Bit
device Word
device
Boolean
Integer8
Integer16
Integer32
Unsigned8
Unsigned16
Unsigned32
Float
VisibleStr
OcteStr
Date
TimeOfDay
TimeDiff
BitStr
×
×
×
×
×
×
×
×
×
×
×
×
*
1
×
×
×
×
×
*
2
*
2
×
×
×
×
×
×
×
×
×
×
×
×
*
3
*
6
×
×
×
×
×
*
3
*
4
*
5
*
3
*
4
*
5
*
5
*
6
*
6
×
×
×
×
×
×
×
×
×
×
×
×
×
*
7
×
×
×
×
×
×
×
×
×
×
×
×
*
7
*
7
*1: Maximum 128 bytes (1024 bits)
*2: Maximum 64 words
*3: Maximum 128 elements
*4: Maximum 64 elements
*5: Maximum
32
elements
*6: 1 element byte length x Number of elements <= 128 bytes, and 1 element is 128 bytes or
less
*7: Maximum
10
elements
(3) Objects
mapping
data
Because the objects and PC memory area mapping shown above is set by the AJ71PB96F/
A1SJ71PB96F, the following items must be set by the software package.
(a) Structured
data
types
•
Index No
•
Number of elements
•
(Data type, data length) Maximum 10 unit combinations
(b) Simple variable
•
Index No.
•
Variable name
•
Data type
•
Network No.
•
PC No.
Head device
For device:
•
Device name
•
Device number
For buffer memory:
•
Y No.
•
Buffer memory address
(c) Array variable
•
Index No.
•
Variable name
•
Data type
•
Network No
•
PC No.
•
Number of elements
Head device
For device:
•
Device name
•
Device number
For buffer memory:
•
Y No.
•
Buffer memory address
(d) Record variable
•
Index No.
•
Index name
•
Structured data type INDEX
•
Network No.
•
PC No.
Head device
For device:
•
(Device name, device number) Maximum 10 unit combination
For buffer memory:
•
(Cannot be used)
(e) Domain
•
Index No.
•
Domain name
•
Network No.
•
PC No.
•
Domain type (program, parameter, ...)
•
Data length
Head device
For device:
•
Device name
•
Device number
For buffer memory:
•
Y No.
•
Buffer memory address