PreviousNext
Examples
Help > Examples

Note: always PNUM=0x4B, always the same device.

 

Enumerate outputs:

         Request

PCMD=0x3E

         Response

PCMD=0xBE, PData=[0x03] => device implements 3 binary outputs.

 

Read outputs:

PCMD=0x00, PData=[0x00,0x00,0x00,0x00]

         Response

PCMD=0x80, PData=[0x03,0x00,0x00,0x00] => 1st and 2nd outputs were ON, others were OFF.

 

Set and read outputs:

PCMD=0x00, PData=[0x05,0x00,0x00,0x00] [0x00] [0x82] => 1st binary output is set to OFF, 3rd output is set to ON for 2 seconds.

         Response

PCMD=0x80, PData=[0x03,0x00,0x00,0x00] => 1st and 2nd outputs were previously ON, others were OFF.