Yaskawa FSP Amplifier FlexWorks User Manual

Page 203

Advertising
background image

Serial Interface Protocol

203

Description: Variable indicators. Each of the eight bits in V1 and V2
corresponds to one argument, and indicates whether the argument
is specified by a numerical value or a variable ID number.
Range: 0 – The argument is specified by a numerical value.
1 – The argument is specified by the ID number of a system
variable. See Chapter 9, List of System Variables.

V1

AND

V2

Example: Consider the IF command, which consists of five
arguments: [Arg 1] [Arg 2] [Arg 3] [Arg 4] [Arg 5].
If Arg 3 is to be specified by a variable, and all others by numerical

values, then the V string, in binary form, would be 00100, where the
right-most 0 corresponds to Arg 1 and the left-most to Arg 5. 00100
corresponds to 0x4 in hexadecimal format, and thus V1 would be set
to 0, and V2 to 4.

Description: Command Argument. Each Pn is one byte for one
digit. The number of arguments and size (number of digits), if
relevant, depend on the Command Operational Code (see Chapter

11, List of Operation Codes).
Range: 0 – The corresponding P bit

P1 P2 …P

N

Notes: Either a numerical value or a variable ID number can be
specified for some arguments. The corresponding V bit specifies

whether the number entered for the argument denotes a numerical
value or the ID number of a system variable. See Chapter 9, List of
System Variables.

Description: Message checksum (two bytes for two digits). The
checksum is calculated by summing all bytes (excluding N and CR)
in a message body (See Chapter 11, List of Operation Codes).

S1

AND

S2

Range: 0x0 – 0xFF. 0x0 – 0xF each

Description: Carriage Return. Used as a message response
termination symbol. Constant value.

CR

Range: CR (0x0D in ASCII code)

Advertising
This manual is related to the following products: