ID : 1016
Type I Variable Read(0110)
Function
This command outputs the value of the Type I (integer type) global variable of the number specified in data area 1 to the status area.
Format
Command area (4 bits, input)
0110
Data area 1 (8 bits, input)
The number of the Type I variable for which a value will be read. Any number between I [0] and I [255] can be specified. When the input data in data area 1 is nn, the value of Type I variable [nn] is output to the status area.
Data area 2 (16 bits, input)
Nothing will be input.
Status area (16 bits, output)
The lower 16 bit value of the Type I variable specified in data area 1 will be output.
Description
The value of the Type I variable specified in data area 1 is output to the status area.
Although the Type I variable has a storage area of 32 bits, the lower 16 bits will be output to the status area.
Therefore, any value between -32768 and 32767 can be output properly. However, if the value is out of this range, only the lower 16 bits of the data will be output.
ID : 1016