Mitsubishi QD51 Programming Manual page 481

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
100
180
B80
11 - 311
• Assign values to %(2) and %(3) ( %(5) and %(6) in case of a format 2 control
table) in the following manner.
D!
• • • •
Head address of the parameter area
H!
L!
Used as work areas.
• • • •
H$
L$
to
100 H!=INT(D!/65536!)
110 L!=D!-H! 65536!
120 H$=RIGHT$("0000"+HEX$(H!))
130 L$=RIGHT$("0000"+HEX$(L!))
140 %(2)=VAL("&H"+L$)
150 %(3)=VAL("&H"+H$)
to
• The capacity of the parameter data is set as follows:
A0J2
• • • •
Other CPUs
• • • •
The maximum number of bytes of parameter data that can be written at one time is
128 bytes. In PLC CPUs other than A0J2CPU, write entire data by specifying the
head address and the number of bytes to be written in units of 128 bytes as follows:
Parameter area
0
H
80
H
H
H
H
• The parameters set in the memory capacity settings of the GPP function, etc. and the
MELSECNET/10 network parameters are written using processing code 14.
The network parameters are written together with the parameters if the PLC CPU
that performs the parameter write operation is an AnUCPU.
If the network parameters are also written, write the entire amount of data
corresponding to parameter capacity (3 k bytes) plus network parameter capacity.
The capacity of the network parameters is displayed on the screen for setting
network parameters in the GPP function.
Make sure always to perform the parameter analysis using Processing Code 15 after writing
parameter data.
In case of a format 2 control table
• • • •
%(5)=VAL("&H"+L$)
• • • •
%(6)=VAL("&H"+H$)
16 k bytes (addresses 0000 to 000F
3 k bytes (addresses 0000 to 0BFF
Specify
%(2)=&H0,
%(3)=0,
Specify
%(2)=&H80,
%(3)=0,
Specify
%(2)=&H100,
Specify
%(2)=&HB80,
MELSEC-Q
)
H
)
H
%(4)=128.
%(4)=128.
%(3)=0,
%(4)=128.
%(3)=0,
%(4)=128.
11 - 311

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents