B
Communication Command Guide
B-17
Input/output information reading (?IN, ?INB, ?OUT, ?OUTB)
Format
Input information
@?IN<input number>[.<node number>] c/r l/f
@?INB<input bit number>[.<node number>] c/r l/f
Output information
@?OUT<output number>[.<node number>] c/r l/f
@?OUTB<output bit number>[.<node number>] c/r l/f
Meaning
Reads specified input/output information.
Function
Reads the information on specified input/output signal.
The read-out results of the input/output information in decimal notation are returned.
Setting
<Input/output number>
: 1 (See the table below.)
<Input/output bit number> : 0 to 15 (See the table below.)
<Node number>
: 1 to 16 (This setting can be omitted when the same command is sent to all the controllers
connected with the host device, as by daisy chain connection.)
Input/output information type
n
Input/output
Number
Input/output
Bit Number
Input
Output
Symbol
Meaning
Symbol
Meaning
1
0
PIN0
Point number selection
POUT0
Point number output
1
PIN1
POUT1
2
PIN2
POUT2
3
PIN3
POUT3
4
PIN4
POUT4
5
PIN5
POUT5
6
PIN6
POUT6
7
PIN7
POUT7
8
JOG+
JOG movement (+ direction)
OUT0
Control output
9
JOG-
JOG movement (- direction)
OUT1
10
MANUAL
Manual mode
OUT2
11
ORG
Return-to-origin
OUT3
12
/LOCK
Interlock
BUSY
Operation is being executed.
13
START
Start
END
Operation completion
14
RESET
Reset
/ALM
Alarm
15
SERVO
Servo ON
SRV-S
Servo status
Communication example
Transmission
Response
@?IN1.1 c/r l/f
Reads the information on input 1 (bit 15 to 0).
IN1.1=36864 c/r l/f
Receives the data. 36864 = 9000h
OK.1 c/r l/f
Normal end
@?OUTB0.1 c/r l/f
Reads the information on output bit 0.
OUTB0.1=1 c/r l/f
Receives the data.
OK.1 c/r l/f
Normal end