beautypg.com

Type i variable read (0110) – Denso RC5 User Manual

Page 79

background image

59

3.5.3.6

Type I Variable Read (0110)

(1) Function

This command outputs to the status area the value of the Type

Ι

(integer

type) global variable of the number specified in data area 1.

(2) 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 substituted.
Any number between I [0] and I [255] can be specified. When the input
data in data area 1 is nn, the value specified in data area 2 will be
substituted for the Type I variable I [nn].

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.

(3) 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.