Download User`s Manual - Version 02

Transcript
Direct ASCII Communication B-17
TRANS 01D
I/O Forcing State Change (RC)
The most significant 16 bits in this 32-bit word select which bits in the I/O
register may be affected, and the least significant 16 bits changes the
states of those bits. If it is read, it returns the state of all bits.
The data format of the "RC" state change word is always a 32-bit
hexadecimal longword.
Format:
>1 RC 0.2 0x00600040
| ||__|_ 16 bit word of new bit states
|__|_ 16 bit mask of bits to change
Example:
>1 RC 0.2 0x00600040
|
|_ bit 6 on, bit 7 off
|_ allow changes to bits 6 and 7
I/O Binary Forcing State (RS)
The "RS" command is used to read and write the state of the forcing bits
for the selected register. If bits are to be affected, the desired bits in the
I/O register must have had forcing enabled by a forcing mask set with the
"RF" command.
The data format of the "RS" 16-bit forcing state word is always binary.
Example:
>1 RS 0.2 0000000100000001
|_______|_ bits 1 and 9 are turned
on, all other
bits turned off if the
bits have
forcing enabled by an
"RF" command
Erase All Forcing Masks (RE)
This command sets all forcing masks and states to zero and returns the
I/O system to normal control. The command only takes effect at the time
that it is sent.
Caution should be used when using this command. The I/O registers are
directly affected and clearing the mask(s) may cause immediate
unwanted motion in the system.
The data format of the "RE" command is ASCII integer.
Example:
DOK-CONTRL-TRANS01D*06-AW02-AE-P
>1 RE 0.1 1
| |_ set to 1 to erase forcing masks
|_ always ’0.1’