Mitsubishi Electric M700V Series Programming Manual page 362

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

13. Program Support Functions
Examples of using macro program for reading PLC data
<Macro specifications>
G340 F_. A_. Q_. H_. ;
F_. ...........Number of bytes designation
A_. ............Device designation
Q_.............Device No. designation
H_. ............ Storage common variable
<Macro contents>
#100100 = #1 ;
#100101 = FIX [#17] ;
#100102 = #9 ;
#100103 = FIX [#17 ∗ 100] MOD 100 ; .......
#[#11] = #100110 ;
M99 ;
Precautions for reading PLC data
(1) As the PLC data is read asynchronously from the ladder execution, the data is not necessarily
from the running program. Take care when reading devices that change.
(2) If reading of a device that does not exist is attempted by designating the device No. and
number of bytes, the 0 value will be read in only for the sections that do not exist.
13.5 User Macro Specifications
F0...... Designates bit.
F1...... Designates one byte.
F2...... Designates two bytes.
A0 ..... Designates M.
A1 ..... Designates D.
A2 ..... Designates C.
A3 ..... Designates G.
A4 ..... Designates X.
A5 ..... Designates Y.
A6 ..... Designates R.
A7 ..... Designates T.
For a bit, designates the bit with two digits
after the decimal point.
For a byte, a decimal value is not designated.
Designates the common variable No. for
storing the read data.
.......
Designates device.
.......
Designates device No.
.......
Designates number of bytes.
Designates bit.
.......
Reads PLC data.
350

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents