4208E Digital Output Configuration

4208E Digital Output Configuration


I have a DI-4208E that I'm looking to control in Linux with Python using the protocol and the Python Starter kit.

One of the things I want to do is configure a DIO as a switch to control an external relay. I'm looking in the protocol at the endo command can't determine what format the argument is in:

Command: endo 20 'ports D0,D1,D3,D5,D6 as inputs
                                   'ports D2 and D4 as switches
                  Response: endo 20 'command echo

It doesn't appear to binary or hex? Looking for an explanation on how '20' configures the ports in that way.