![YOKOGAWA F3YP14-0N User Manual Download Page 91](http://html1.mh-extra.com/html/yokogawa/f3yp14-0n/f3yp14-0n_user-manual_910940091.webp)
7-36
IM 34M6H55-02E
1st Edition : Apr 1, 2002-00
7.2 Accessing from a BASIC CPU
You can use the following the commands to access the module from a BASIC CPU. For
details of each command, see “Basic CPU Modules and YM-BASIC/FA Programming
Language” (IM 34M6Q22-01E).
Function Statement
Format
Explanation
Module use
declaration
ASSIGN YP18 = SL
SL: Slot number
Declares use of a module or CPU module.
Reading
parameters and
status
ENTER SL, n NOFORMAT; I
SL: Slot number
n : Data position number
I : Name of the integer/integer array
variable for storing the read data
Reads the parameter or status of the
data position number (n) of the module
installed in the slot (SL), and stores it in
the variable (I).
Writing
parameters
OUTPUT SL, n NOFORMAT; I
SL: Slot number
n
: Data position number
I
: Name of the Integer/integer array
variable for storing the write data
Overwrites a parameter at the data
position number (n) of the module
installed in the slot (SL) with the value
stored in the variable (I).
Reading input
relays
*1
STATUS SL, n; P
SL
: Slot number
n
: Data position number (101or 102)
P
: Name of the Integer variable for
storing the read data
Reads the status of the input relays of
the module that is installed in the slot
(SL), and stores it in the variable (P).
Writing output
relays
*2
CONTROL SL, n; P, M
SL
: Slot number
n
: Data position number (101 or 102)
P
: Output data
M
: Mask pattern
Overwrites the output relays of the
module installed in the slot (SL) with the
value stored in the variable (P). The
mask pattern (M) allows overwriting to
only specified output relays.
*
1:
For input relays, data position number 101 is for axes 1 to 4 (X
VVV
01 to X
VVV
16), and 102 is for axes 5 to 8
(X
VVV
17 to X
VVV
32).
*
2:
For output relays, data position number 101 is for axes 1 to 4 (Y
VVV
33 to Y
VVV
48), and 102 is for axes 5 to 8
(Y
VVV
49 to Y
VVV
64).
z
z
z
z
How To Handle 2-Word Data
You must convert long-word data to 2-word integer data before writing parameters to the
positioning module. When reading 2-word data from the positioning module, you must
convert the data to long-word data after reading the data as two integer variables.
LDAT
: Long-word integer variable before conversion
IDD, IDU: Integer variable for storing the data after conversion
(low-order/high-order)
100 IDD=VAL(“$”+RIGHT$(LHEX$(LDAT),4))
110 IDU=VAL(“$”+LEFT$(LHEX$(LDAT),4))
ISD, ISU: Integer variable containing the 2 words read
(low-order/high-order)
LST
: Long-word integer variable after conversion
100 LST=VAL(“$”+HEX$(ISU)+HEX$(ISD))
Summary of Contents for F3YP14-0N
Page 13: ...Blank Page ...
Page 15: ...Blank Page ...
Page 23: ...Blank Page ...
Page 53: ...Blank Page ...
Page 60: ...7 5 IM 34M6H55 02E 1st Edition Apr 1 2002 00 Figure 7 2 Set Parameter Program ...
Page 65: ...7 10 IM 34M6H55 02E 1st Edition Apr 1 2002 00 Figure 7 6 Jog Stepping Program ...
Page 69: ...7 14 IM 34M6H55 02E 1st Edition Apr 1 2002 00 Figure 7 9 Origin Search Program ...
Page 77: ...7 22 IM 34M6H55 02E 1st Edition Apr 1 2002 00 Figure 7 15 Positioning Operation Program ...
Page 111: ...Blank Page ...
Page 127: ...Blank Page ...