Commands are sent to the module using the WRITE_CMD instruction with the following syntax: WRITE_CMD (%CHr.m.0)
This instruction sends the order to the module and awaits its acknowledgement. This wait may require several task cycles.
NOTE: The module only interprets one command at a time. If a command is requested while the previous command is being processed, the new command is refused. Only one bit will be at 1 in the command word.
Monitoring parameter recognition
As the module may require several task cycles to recognize commands, two memory words are standardized to control the %MWr.m.0.0 and %MWr.m.0.1 exchanges
The first word %MWr.m.0.0 indicates a current exchange.
The second word %MWr.m.0.1 gives the exchange report.
The following table describes the objects used for controlling the sending of commands to the module.
Address
|
Meaning (for the bit at state 1)
|
%MWr.m.0.0.1
|
Indicates that the command has been sent to the module.
|
%MWr.m.0.1.1
|
Shows if the command is accepted by the module.
|
%MWr.m.0.2.7
|
Signals that a command or parameter has been refused.
|