Modbus Motion Interface
Write_Word(OutputBit_+ 1,<1 for high, 0 for low>);
Write_Word(OutputBit_+ 2,<1 for high, 0 for low>);
Write_Word(OutputBit_+ 3,<1 for high, 0 for low>);
Write_Word(OutputBit_+ 4,<1 for high, 0 for low>);
Write_Word(OutputBit_+ 5,<1 for high, 0 for low>);
Write_Word(OutputBit_+ 6,<1 for high, 0 for low>);
Write_Word(OutputBit_+ 7,<1 for high, 0 for low>);
Write_Word(OutputBit_+ 8,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 1,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 2,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 3,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 4,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 5,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 6,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 7,<1 for high, 0 for low>);
Read_Word(OutputBit_+ 8,<1 for high, 0 for low>);
Description
The Set Output Bit registers controls their respective electrical outputs. A non-zero value applies
"Logic Pwr" voltage
to the output pin. Writing a 0 values disconnects the output pin leaving it open.
Escapes
If the value added to OutputBit_ creates a sum outside the available output range an "event not defined" (3001) will be reported.
Examples
Turn output 2 on.
Write_Word(OutputBit_ + 2,1);
Turn output 1 off
Write_Word(OuputBit_+1,0);
Read back Output 3.
if Read_Word(OutputBit_+ 3) <> 0 then
ShowMessage('Output 3 is on');
Related Topics
Input Bit
|