Data Type - LG GLOFA-GM Series User Manual

Programmable logic controller cnet i/f module
Hide thumbs Also See for GLOFA-GM Series:
Table of Contents

Advertisement

Chapter 7 Communication function

7.2.4 Data type

When direct variables and named variables are read/written, attention must be paid to data type of direct and named
variables to be read.
1) Data type of direct variables
Memory device type of GLOFA-GM PLC : M(Internal memory), Q(Output), I(input)
Data type for direct variables is displayed next to '%', an indicating character of direct variable.
[Table7.12] List of data types of direct variables
Data type
Bit
Byte
WORD
DOUBLE WORD
LONG WORD
2) Data type of named variables
To read/write named variables, data type is specified by command type.
[Table7.13] List of data types of named variables
Data type
BIT
BYTE
WORD
DWORD
LWORD
SINT
INT
DINT
LINT
USINT
UINT
Ind. character
Sign
ASCII
X
H58
%MX0, %QX0.0.0,%IX0.0.0
B
H42
%MB10,%QB0.0.0,%IB0.0.0
W
H57
%MW10,%QW0.0.0,%IW0.0.0
D
H44
%MD10,%QD0.0.0,%ID0.0.0
L
H4C
%ML10,%QL0.0.0,%IL0.0.0
Command type
Figure
ASCII value
H00
H3030
H01
H3031
H02
H3032
H03
H3033
H04
H3034
H05
H3035
H06
H3036
H07
H3037
H08
H3038
H09
H3039
H0A
H3041
7-40
Example
Command type
Data type
Figure
UDINT
H0B
ULINT
H0C
REAL
H0D
LREAL
H0E
TIME
H0F
DATE
H10
TOD
H11
DT
H12
STRING
H13
BLOCK
H14
ASCII value
H3042
H3043
H3044
H3045
H3046
H3130
H3131
H3132
H3133
H3134

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents