...
If you want to provide mock signals for the Pally program from another thread, set the data source of the corresponding IO channel type (element 0 of the array) to either -1 or -11 in runtime.
The name of the relevant IO channel variables
...
The variable names are listed below.
rf_in_1_product1
: first product sensor on the primary conveyorrf_in_1_product2
: second product sensor on the primary conveyorrf_in_1_product3...8
: additional sensors on the primary conveyor (up to 8 supported)rf_in_2_product1
: first product sensor on the secondary conveyorrf_in_2_product2
: second product sensor on the secondary conveyorrf_in_2_product3...8
: additional sensor on the secondary conveyor (up to 8 supported)rf_in_overflow1
: priority sensor on the first conveyorrf_in_overflow2
: priority sensor on the second conveyorrf_in_button_P1
: right pallet confirmation signalrf_in_button_P2
: left pallet confirmation signal
Info |
---|
Remember: To change the IO type, update the 0th element of the array, e.g.
|
Info |
---|
Remember: To change the IO channel, update the 1st element of the array, e.g.
|
Examples
Example: simulate the operator has pushed the Right pallet confirmation button:
Code Block |
---|
rf_in_button_P1[0] = -11 # simulate user pushed the button |
...
sleep(0.5) |
...
rf_in_button_P1[0] = -1 # simulate user released the button |
This will detach the program from the physical IO channel and evaluate as True and False.
Example: simulate a product on the first pick position on the primary conveyor
Code Block |
---|
rf_in_1_product1[0] = -11 # simulate product presence |
Example: switch between 2 digital inputs depending on box size (experimental)
Code Block |
---|
if (big_box):
rf_in_1_product2[1] = 3 # usign DIGITAL IN 3
else:
rf_in_1_product2[1] = 2 # usign DIGITAL IN 2 |