12. COMMUNICATION FUNCTIONS
Through RS-232C port (CN1), operation mode switching and data setting can be done with a
dedicated dialog terminal or a personal computer.
1)
Communication Codes
(1) Kinds of Code
Communication codes are classified into three code groups starting with M, S, and L,
each having the functions as described below.
Table 12.1 Kinds of Communication Codes and Return Value
Code Group
M1 to M6
S1 to S7, S20
L1 to L21
(2) Communication Codes and Data
Communication codes are sequentially transmitted in ASCII codes, and with CR
(carriage return code 0DH) added at the end. When data are required for communication
code (L7, and L9), insert space (20H) between a code and data, or between data.
The driver after having received the communication code will return the following return
value, listed in Table 12.1, and CR, and LF (line feed code 0AH).
(Example 1) Parameter setting.....to set 3 for parameter 1
Data sent to the driver
L7_1_3_CR
(_denotes space.)
(Example 2) To switch to MDI (manual data input) mode.
Data sent to the driver
M3 CR
Return values for non-defined code or data is * (2AH), which causes alarm 7.
Discontinue
Function
Operation mode
switching
Motion instruction
Data I/O
Data returned by the driver (return value)
0 CR LF
Data returned by the driver
0 CR LF
— 12-1 —
Return Value (Normal)
0
0
Value defined by each
code (Table 12.4)
12
COMMUNICATION
FUNCTIONS
Return Value
(Abnormal)
*(2AH)
*(2AH)
*(2AH)
[SMB-14E]
Need help?
Do you have a question about the AX Series and is the answer not in the manual?