WGBATCH

This instruction initiates a batch control.

 

image-20240325-062405.png

 

n1 : The base number and its slot number where the WG0nA module installed. This parameter gets a word value. The base number (00H - 10H) must be assigned to the high byte of the word and the low byte of the word must be the slot number (00H – 0BH). For example, 0105H of n1 parameter means, the WG0nA module is installed in the 6th slot of the first expansion base.

n2 : A channel number of WG0nA. (1 – 4)

n3 : A word sized memory device can be used as the n3 parameter. This memory device will hold the result code of execution. Before issuing instruction this memory device should be cleared to zero.
The result code includes error code and other flags as following figure.

 

image-20240325-062406.png