Example - Ladder Diagram
WGBATCH
The WGBATCH instruction executes a batch program from a load cell module, Base/Slot, on the channel, S, and saves the result of the execution in an assigned WORD data register, D.
Ladder Diagram Example
When the contact, M0.0, is powered ON (1), the batch program executes.
The resulting data register, M10, is set to 2 (bit 1 is ON), meaning the batch program is currently executing.