<Toc> <Ind>
<6. Module Access >
6-5
IM 34M6H28-01E
1st Edition : Feb.01,1999-00
6.3.2
Access Using BASIC
In BASIC, the following instructions are used to access from the CPU module. For the
details on each instruction, see “BASIC CPU, BASIC Programming Tool M3” (IM34M6Q22-
01E).
The following BASIC statements can be used for this module. If statements other than the
following are used, the operation cannot be guaranteed.
Table 6.6
Statements
Functions
Statement Type
Explanation
Module use declaration
ASSIGN LD01=SL
SL: Slot number
Declares use of module and CPU module.
Reading from I/O data
register
ENTER SL, n NOFORMAT;I
SL: Slot number
n: Data position number
I: Variable name to store read data
The data of data position number n of the
module, which is installed in slot number SL,
are read and stored in input variable I.
Writing to I/O data register OUTPUT SL, n, NOFORMAT;I
SL: Slot number
n: Data position number
I: Integer variable name or integer
array variable name
The contents that are specified in variable I are
stored in data position number n of the module
which is installed in slot number SL.
Reading status of input
relay
STATUS SL, n; P
SL: Slot number
n: Data position number (101, 102)
P: Variable to store the value read.
The status of the input relay of the module
which is installed in slot number SL is read
and stored in variable P.
Writing to output relay
CONTROL SL, n; P, M
SL: Slot number
n: Data position number (101, 102)
P: Output data
M: Mask pattern
The value of variable P is output to the output
relay status of the module which is installed in
slot number SL. By using the mask pattern, you
can output to only specific relays.
T0606.EPS
Содержание FA-M3 Vitesse
Страница 2: ...Blank Page...
Страница 28: ...Blank Page...
Страница 40: ...Blank Page...
Страница 94: ...Blank Page...
Страница 116: ...Blank Page...
Страница 118: ...Blank Page...