LSB is the lowest input so value 5 would be:
$IN[124]= 1
$IN[125]= 0
$IN[126]= 1
$IN[127]= 0
Ohh i see. Thanks a lot
So am i write everything right?
If i declare these signals in config.dat and give these inputs values (to 124 and 127)from the PLC, will i get 1500(and of course i need 12 more inputs for 1 and 0 and 0) if i say in the main program:
Length = material_length() ?