{Zn.m}
Formats values like {Fn.m} except leading zeroes are removed
{En}
Outputs message to Ethernet handle n where n is A,B or C
{P1}
Outputs message to Serial port
{M}
Sends Email message (see MA, MD, MS commands)
Displaying Variables and Arrays
Variables and arrays may be sent to the screen using the format, variable=
or
array[x]=. For example, V1=
, returns the value of V1.
Removing Leading Zeros from Response
The leading zeros on data returned as a response to interrogation commands or variables and arrays can be
removed by the use of the command, LZ. The default value for LZ is 1, meaning that the leading zeroes do
not get printed out unless LZ0 command is entered.
Example - Using the LZ command
LZ0
Disables the LZ function
MG@IN[0]
Print input status of bank 1
0000000001.0000
Response from Interrogation Command
(With Leading Zeros)
LZ1
Enables the LZ function
MG@IN[0]
Print input status of bank 1
1.0000
Response from Interrogation Command
(Without Leading Zeros)
Formatting Variables and Array Elements
The Variable Format (VF) command is used to format variables and array elements. The VF command is
specified by:
VF
m.n
where m is the number of digits to the left of the decimal point (0 thru 10), and n is the number of digits to
the right of the decimal point (0 thru 4).
A negative sign for m specifies hexadecimal format. The default format for VF is VF 10.4
Hex values are returned preceded by a $ and in 2's complement.
:V1=10 Assign
V1
:V1= Return
V1
0000000010.0000 Default
format
:VF2.2 Change
format
:V1= Return
V1
10.00 New
format
:VF-2.2 Specify
hex
format
:V1= Return
V1
$0A.00 Hex
value
:VF1 Change
format
:V1= Return
V1
9 Overflow
RIO-47xxx
Chapter 5 Programming
●
71
Содержание RIO-47120
Страница 2: ......
Страница 93: ...RIO Dimensions RIO 471xx Units in centimeters RIO 47xxx Appendix 87...
Страница 94: ...RIO 472xx Units in millimeters 88 Appendix RIO 47xxx...
Страница 107: ...Internal 56 64 Zero Stack 53 RIO 47xxx Index 101...