
3.PERIPHERAL EQUIPMENT CONTROL HANDLING B-65395EN/01
- 98 -
3.4.8.3 Peripheral equipment control command format
A parameter to be rewritten is specified using the following command:
Command (host → servo amplifier module)
7 6 5 4 3 2 1 0
Yy+2 Function code Command data 1
Yy+3
Yy+4 Command data 2
Yy+5
Yy+6
Function code : 12
Command data 1 :
1 : Rewrites a byte parameter.
2 : Rewrites a word parameter.
3 : Rewrites a double-word parameter (first time).
B : Rewrites a double-word parameter (second time).
Command data 2 :
Sets the number of a parameter to be rewritten in Yy+3 and Yy+4.
Sets the value of a parameter to be rewritten in Yy+5 and Yy+6.
Data type
1) Byte type
Yy+5
Example: Number 22, data 5
Yy+3=16 [hexadecimal], Yy+4=00
Yy+5=05 [hexadecimal], Yy+6=00
2) Word type
Yy+5 Lower byte
Yy+6 Higher byte
Data = higher byte × 256 + lower byte
• When rewriting a double-word parameter, divide the value of
the parameter into two for two specifications.
Example: Number 140, data 500000
500000=0007A120 [hexadecimal]
First time:
Yy+3=8C [hexadecimal], Yy+4=00
Yy+5=20 [hexadecimal], Yy+6=A1 [hexadecimal]
Second time:
Yy+3=8C [hexadecimal], Yy+4=00
Yy+5=07 [hexadecimal], Yy+6=00