Mitsubishi Electric M700V Series Programming Manual page 358

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

13. Program Support Functions
Reading PLC data
PLC data can be read in with the system variables.
(Note 1) These can be used only with some models.
(Note 2) The read devices are limited.
Variable No.
#100100
#100101
#100102
#100103
#100110
The PLC data is read in with the following five blocks using these five system variables.
#100100 = 1 ; ............Designates the device type.
#100101 = 0 ; ............Designates the device No.
#100102 = 1 ; ............Designates the number of bytes.
#100103 = 2 ; ............Designates the bit. (Valid only when reading word device bits.)
#100 = #100110 ; ......Reads in the PLC data.
(1) Device designation (#100100)
(a) System variable for device designation
The type of device to be read in can be designated by substituting the device designation
value in this system variable.
If the data is read without designating this number, the data will be read in the same
manner as if the minimum device designation value (0: M device) is designated. Once
designated, the setting is held until the device is designated again or until it is reset.
A program error (P39) will occur if a device that does not exist is set.
(b) Device designation values
Device
designa-
tion value
0
1
2
4
5
6
7
9
The unit is the amount of data per device No. "Word" has 16 bits, and "Bit" has one bit.
* is a device that expresses the device No. as a hexadecimal.
Application
Device type designation
Device No. designation
Number of read bytes designation
Read bit designation
PLC data read
Device
Unit
Device No.
M
Bit
M0 to M10239
D
Word D0 to D2047
C
Bit
C0 to C255
X *
Bit
X0 to X1FFF
Y *
Bit
Y0 to Y1FFF
R
Word R0 to R13311
T
Bit
T0 to T703
SM
Bit
SM0 to SM127
346
13.5 User Macro Specifications
Device
Device
designa-
Unit
tion value
10
F
Bit
13
L
Bit
18
V
Bit
19
ST
Bit
20
SD
Word SD0 to SD127
21
SB*
Bit
22
SW*
Word SW0 to SW1FF
23
B*
Bit
24
W*
Word W0 to W1FFF
Device No.
F0 to F1023
L0 to L511
V0 to V255
ST0 to ST63
SB0 to SB1FF
B0 to B1FFF

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents