16
3
3.
Communication Specifications
3.1. Communication Setting
When transmitting a command to this product from a personal computer, be sure to set up the communication
settings as followed.
Communication Specification
RS-232C Conformity
Communication Speed
9600bps
Data Length
8 bit
Stop bit
1 bit
Parity
None
Flow Control
None
3.2. Frame Format
The Output Terminal Buss is controllable by transmitting the data in the following format to this product from a personal
computer. Because the Identification Number (hereinafter, referred to as “ID”) is recorded inside this product, the ID will
not change even if the power is turned off.
Header
ID *
Command
Data
End Code
Send Data
ASCII Code
[HEX Code]
@
[40H]
??
[3FH 3FH]
Refer to the list
of commands
By command
!
[21H]
byte count
1Byte
2Byte
1Byte
0~8Byte
1Byte
* ID (default setting= “??”) set for this product is as follows.
When changing the ID number for this product, refer to “3.2.3 Set ID for this Product.”
Since “??” can be used to execute a command irrespective of the product’s ID, use “??” when executing
commands.
3.2.1.
<Comand List>
The list of commands and functions which can be used is shown in the table below.
Command
Number of Data bytes
Function
1
[31H]
2Byte
To have the specified Output Terminal ON
0
[30H]
2Byte
To have the specified Output Terminal OFF
?
[3FH]
2Byte
To set the ID of this product
S
[53H]
8Byte
To control specified Output Terminal as specified conditions
G
[47H]
0Byte
To obtain the condition of the Output Terminal
C
[43H]
0Byte
To have all Output Terminals OFF
M
[4DH]
0Byte
To obtain information on this product
MEMO
• A “1” and “0” Command has compatibility with the PC Output Relay Unit, PHC-100A.
• Since command “S” can control the ON/OFF of the Output Terminals simultaneously, it is
recommended to use the “S” command for controlling those operations for this product.
•
After sending a control command to the Main Unit as per it’s specifications, if the control
commands are sent without waiting for the reply data from the Main Unit, it will not operate
normally (Which is how it is supposed to operate when a NAK reply is not received).