zektor serialoption ユーザーズマニュアル

ページ / 24
3
An RS-232 Overview
The RS-232 interface for Zektor products has been designed to be simple, straight forward and still allow the installer 
full access to the capabilities of the product being controlled.
• The cable used to connect to a standard PC is a straight through RS-232 cable. The same type of cable used 
to connect to a standard serial modem.
• All commands sent to the RS-232 interface consist of the command followed by a carriage return.
• All commands follow the same format.
• For easy parsing all strings returned from the RS-232 interface are identified by the first character of the string.
• There are only 3 possible response codes coming from the interface. They are identified by the 3 following char-
acters:
‘+’
 
- The acknowledgement of a valid command.
‘!’ 
- The command caused an error (followed by the error code).
‘=’
- Indicates a status string (followed by the status string).
• All status strings follow the same format.
• All status strings are always terminated with a carriage return / line feed combination to allow for easy buffering 
of returned strings.
Pinout
Transmit:
Pin 2
(Transmit from Serial Slot option to the PC)
Receive:
Pin 3
(Receive from the PC to the Serial Slot option)
Signal GND:
Pin 5
Serial Port Settings
Baud Rate:
9600
Data Bits:
8
Parity:
None
Stop Bits:
1
The Command String Format
<cmd><parameters><CR>
Where:
<cmd>
 
= The RS-232 command.
<parameters>
= Optional parameters required by some commands.
<CR>
= The Carriage Return character used to terminate the command.
All commands will be acknowledged, with either a simple acknowledgment string, or an error code, depending upon 
the command’s successful execution.
The Acknowledgment String
+<CR><LF>