Menu

Topic-icon Digital Output

More
4 years 5 days ago #29531460 by giuspsor@tin.it
Hi, I have a problem on digital output.
If the console roborun + I type? DO 1 as a result is 8320,
while if I type? DO 2 the result is -
Thank you

Please Log in or Create an account to join the conversation.

More
4 years 5 days ago #29531461 by niko
Replied by niko on topic Digital Output
Hello Giuseppe,

DO command provides you with a number whose binary representation provides the state of the DOUTs. So the correct command is ?DO, without any argument.

An example to make it more clear:

if ?DO returns 8320 then:
8320 = 0010 0000 1000 0000

So starting from the LSbit you see the state of each digital output. With 8320 DOUT1 is 0 and DOUT2 is 0.

If it was 8321 = 0010 0000 1000 0001 then DOUT1 would be 1.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.089 seconds
Go to top