Control on command, Checksum, Calculation – Yaskawa FSP Amplifier FlexWorks User Manual
Page 204: Master message format example

Serial Interface Protocol
204
6.2.2.1. Checksum Calculation
Checksum is calculated for a binary message. Each factor in the
equation (excluding N and CR) is two digits of a hexadecimal
number and consists of two adjacent
bytes.
The checksum of the message: N A M id1 id2 C1 C2 V1 V2 P1 P2 P3
P4 S1S2 CR is:
S1S2 = 0x100 – (a m + id1id2 + V1V2 + P1P2 + P3P4)
Only the two digits on the right are considered.
N
OTE
:
It is possible to work without checksum by setting Pn2C6 = 0.
When working
without checksum, set 00 instead of checksum
(S1S2).
6.2.2.2. Master Message Format Example
CONTROL ON command
Example of CONTROL_ON command to axis 0 in Immediate mode:
Format:
N A M I
D
1 I
D
2 C1 C2 V1 V2 P1 P2 S1 S2 CR
N
0
A 0 0 4 5 0 0 0 1 B 0 CR
Where:
A = 0
Axis number 0
M = 0xA
Immediate mode
ID1 = 0; Id2= 0
Ignore message ID
C1 = 4; C2 = 5
Command operational code = 0x45
V1, V2 = 0
The arguments are specified by numerical
values, not variable ID numbers.
P1 = 0; P2 = 1
One command argument (two digits)
S1 = B; S2 = 8
0x100–(0x0A+0x00+0x45+0x01) = 0xB0