Mitsubishi QD51 Programming Manual page 510

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Specified address (hexadecimal) = convert {(address for the FROM/TO instruction x 2)} into a hexadecimal
number, then add (the starting address of each module)
11 - 340
• The special function module's buffer memory contains 16 bits (one word) per
one address and reading/writing operations between the PLC CPU and
intelligent functional module are performed with the FROM/TO instructions.
When reading/writing from the special function module's buffer memory to the
QD51 (-R24) or vice versa, the operation is performed in units of 8 bits (one
byte) per one address.
The addresses (hexadecimal) to specify in the QD51 (-R24) are obtained by the
following conversion from addresses for the FROM/TO instructions.
Example: When specifying address 1 of the FROM/TO instructions (the preset
value of CH.1) of the type AD61 high-speed counter module.
Specified
address 82
H
See Appendix for the starting address of each intelligent functional module.
• Assign values to %(3) and %(4) ( %(6) and %(7) in case of a format 2
control table, %(7) and %(8) in case of a format 3 control table) in the
following manner.
D!
• • • • • • The specified address calculated using the formula above
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
%(3)=VAL("&H"+L$) • • • • • • • • • •
150
%(4)=VAL("&H"+H$) • • • • • • • • • •
to
FROM/TO instruction
=
address 0 × 2, 1
× 2
H
MELSEC-Q
starting
+
address 80
H
In case of a format 2 control table
%(6)=VAL("&H"+L$)
%(7)=VAL("&H"+H$)
11 - 340

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents