Hi Kawasaki
I had a vacuum gripper with 20 zones of vacuum cups, used to pick cartons. Signals starts from output 12 to 31(20 zones).
In the existing code, when robot is picking up cartons, it just outputs like this,
"
;//pick up all cartons
Signal 12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29
"
Which leaves the last two outputs(30,31) turned off.
I tried to simplify this with the code below in the simulator,
"
Bits32 12,20 = 262143
"
262143 is the decimal number of outputs from 12 to 29 being turned on. And this worked in the simulator. But when I changed the code like this, it just faulted in the simulator,
"
binary=262143
Bits32 12,20=binary
"
I need to do something to make the code flexible due to different carton dimension, so I’d like to use “binary” as a variable calculated by other code regarding carton dimension to define which zones of cups should be turned on, but it just didn’t work. Neither in BITS command. I believe this happens in a real robot as well.
Could you please let me know if there is a way to resolve this, or we have to put a exact number to the right of equal sign of Bits32 command. From the AS reference menu”90209-1022DE”, it says the value should be a binary notation.
Thank you very much for the help.
Best Regards,
Superbei30