<Toc> <Ind>
<4. Module Access >
4-13
IM 34M6H54-01E
4.2
Access Using BASIC Statements
4.2.1
List of Statements
The BASIC statements given in Table 4.6 can be used in the pulse input module.
Operation of the module cannot be assured if statements other than those given in the
table are used.
Table 4.6
BASIC Statements Which Can Be Used
Function
Format of statements
Explanation
Declare use of
module
(Example)
ASSIGN XS04=SL
SL: Slot number
Defines the correspondence between
modules and slot numbers.
Execute this statement without fail before
accessing the input pulse module.
Use this statement within the main program.
Read data from
the pulse input
module
ENTER SL, n NOFORMAT;1
Or
ENTER SL NOFORMAT;I (*)
SL: Slot number
n:
Data position No.
(channel number)
I:
Variable name in which
read data is stored
Reads the counter value of channel number
n of the pulse input module installed in slot
numbers SL and stores it in input variable I.
If the channel number is not specified, it
stores the counter values read sequentially
from channel number 1 into input array
variable I(*).
Read setting data
STATUS SL, n ; P
Or
STATUS SL ; P
SL: Slot number
n:
Data position number
P:
Variable name in which
read data is stored
Reads the preset values, input function,
output function, and filter constant at data
position number n of the pulse input module
installed in slot number SL and stores it in
input variable P.
Write setting data
CONTROL SL , n; P
Or
CONTROL SL; P
SL: Slot number
n:
Data position number
P:
Setting data
Sets the preset values, input function, output
function, and filter constant at data position
number n of the pulse input module installed
in slot number SL. Specify the preset values,
input function, output function, and input
filter constant in setting data P.
Read the status of
the input relay
STATUS SL, 100+n; P
SL: Slot number
n:
Data position number (1
or 2)
P:
Variable name in which
read value is stored
Reads the status of the input relays
X
uuu
01 to X
uuu
32 of the pulse input
module installed in slot number SL and
stores it in variable P.
Output to the
output relay
CONTROL SL , 100+n; P, M
SL: Slot number
n:
Data position number (1
or 2)
P:
Output data
M: Mask pattern
Output to the output relays Y
uuu
33 to
Y
uuu
64 of the pulse input module installed
in slot number SL. You can access specific
output relays only using the mask pattern.
T0406.EPS
1st Edition : Feb.01,1999-00
Summary of Contents for F3XS04-3N
Page 2: ...Blank Page ...
Page 8: ...Blank Page ...
Page 10: ...Blank Page ...
Page 56: ...Blank Page ...
Page 66: ...Blank Page ...