Rs232c interfaces, 5 parameter commands – Parker Hannifin Dynaserv G2 User Manual

Page 92

Advertising
background image

7-8

RS232C Interfaces

7

7.5

Parameter Commands

Through the use of parameter commands, it is possible to refer to values of parameters and monitor (reference
commands
), assign numerical values and variables to parameters (simple setting commands), and assigning
results of arithmetic operations on numerical values and variables to parameters (calculation result setting
commands
). The response is issued immediately.
A reference command issues a transmission character string simply containing a variable given directly by #***.
At normal operation, if a response is generated, a response character string that begins from “R1!” and one data
is returned.
In simple setting commands and calculation result setting commands, the left-hand side must be variables
expressed by #***. The right-hand side can be direct numerical values, or it can contain variables such as a
parameter/monitor referred to by #***. The response at normal operation is “R00.”

[Reference commands]

#!

#!

Reads the value of parameter #!

Reads the value of monitor #!

Response character string: R1D ! : !
Response character string: R1B ! : 00010000

[Simple setting commands]

#400=!
#400=#!

Sets ! to variable #400.
Sets the value stored in #! to variable #!.

[Calculation result setting commands]

The following operands can be used:

+

Addition

-

Subtraction

*

Multiplication

/

Division

%

Remainder at integer division

#! = ! + !
#! = #! - !
#! = ! * #!
#! = #! / #!

#! = !%!

Sets the result of adding ! and ! to variable #!.
Sets the value obtained by subtracting ! from the value stored in #! to variable #!.
Sets the result of multiplication of ! and the value stored in #! to variable #!.
Sets the value obtained by dividing the value stored in #! by the value stored in #! to
variable #!.
Sets the remainder of ! divided by ! to variable #!.

Advertising