beautypg.com

Denso RC5 User Manual

Page 78

background image

58

3.5.3.5

Type I Variable Write (0101)

(1) Function

This command substitutes the value specified in data area 2 for the Type I
(integer type) global variable of the number specified in data area 1.

(2) Format

Command area (4 bits, input)
0101

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)
The value to be substituted for the Type I variable specified in data area 1.
Any value between -32768 and 32767 can be set.

Status area (16 bits, output)
Nothing will be output.

(3) Description

The value specified in data area 2 is substituted for the Type I variable
specified in data area 1.
Although the type I variable has a storage area of 32 bits, the 16-bit data
in data area 2 will be substituted for the lower 16 bits. Zero will be
substituted for the upper 16 bits of the Type I variable.