Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The variable names are listed below.

Info

Remember: To change the IO type, update the 0th element of the array, i.e. g. rf_in_1_product1always put [0] = 0

Info

Remember: To change the IO channel, update the 1st element of the array, behind the variable name, e.g.:

rf_in_1_product1[10] = 7-1

  • rf_in_1_product1: first product sensor on the primary conveyor

  • rf_in_1_product2: second product sensor on the primary conveyor

  • rf_in_1_product3...8: additional sensors on the primary conveyor (up to 8 supported)

  • rf_in_2_product1: first product sensor on the secondary conveyor

  • rf_in_2_product2: second product sensor on the secondary conveyor

  • rf_in_2_product3...8: additional sensor on the secondary conveyor (up to 8 supported)

  • rf_in_overflow1: priority sensor on the first conveyor

  • rf_in_overflow2: priority sensor on the second conveyor

  • rf_in_button_P1: right pallet confirmation signal

  • rf_in_button_P2: left pallet confirmation signal

To simulate a constant HIGH signal, set the corresponding input type to -11.

To simulate a constant LOG signal, set the corresponding input type to -1.

The complete list of available IO types can be found here.

...

Code Block
rf_in_1_product1[0] = -11 # simulate product presence

Example 3) switch between two digital inputs for product sensor 2, depending on box size (experimental)evaluate two sensors, set pick signal to HIGH only when both are HIGH

Code Block
if (big_box(get_standard_digital_in(0) and get_standard_digital_in(1)): 
  rf_in_1_product2product1[10] = 3-11 # usignsimulate DIGITALproduct IN 3present
else:
  rf_in_1_product2product1[10] = 2-1 # usignsimulate DIGITALno INproduct 2present