Skip to content

Rainbow x Icevan v1.1

1. Configuration & Setting

missing

  • Connect a commercial USB-RS232 (USB-serial) device to the control box of Rainbow Robot
  • Communication lines between devices should be cross-connected / Connect the GND (ground) wires on both sides. (Common ground)
  • Icevan equipment uses serial communication speed/Baud rate as 9600 bps, so set the rainbow control box accordingly.

missing

2. Variable Description

WARNING

  • In the table below, the information in the yellow area is the information transmitted by Icevan (ice machine).
  • The values stored in the variables in the yellow area contain the information that the Icevan transmits to the Rainbow-ControlBox through communication.
Variable NameDescriptionRef. Icevan Manual
ICE_INFO_CONNECTEDWhether it is communicating with the Icevan
ICE_INFO_REQUESTING*RB developer only
ICE_INFO_USING*RB developer only
ICE_INFO_VECSIZE*RB developer only
ICE_INFO_MODE_COMM1:Communication mode / 0:Normal modeChap. 1
ICE_INFO_MODE_CUP1:Ignore Cup depart / 0: Stop Ice-out if CupdepartChap. 1
ICE_INFO_TIME_ICELast Ice-out time
ICE_INFO_TIME_WATERLast Water-out time
ICE_INFO_AMBI_LOWLower limit for ambient temperature settingChap. 4
ICE_INFO_AMBI_HIGHUpper limit for ambient temperature settingChap. 4
ICE_INFO_TEMP_AMBITemperature : AmbientChap. 5
ICE_INFO_TEMP_EVAPOTemperature : EvaporatorChap. 5-1
ICE_INFO_TEMP_CONDENTemperature : CondensorChap. 5-1
ICE_STATE_LAST_ICE_NOIf ice is not detected in the previous ice-outManual: ignore this
ICE_STATE_LAST_ICE_YESIf ice is detected in the previous ice-outManual: ignore this
ICE_STATE_COMP_WORKWhether the compressor works (1=working)Page 3 upper table
ICE_STATE_MOTOR_WORKWhether the gear-motor works (1=working)Page 3 upper table
ICE_STATE_OUT_SOLIce-out SOL detection (1=detected)Page 3 upper table
ICE_STATE_CUP_LEVELCup lever detection (1=detected)Page 3 upper table
ICE_STATE_COMM_MODE1 if communication modePage 3 upper table
ICE_STATE_FULL_ICEIce-Full signal (1 = Full Ice)Page 3 upper table
ICE_STATE_ERR_1*RB developer only
ICE_STATE_ERR_2*RB developer only
ICE_STATE_ERR_3*RB developer only
ICE_STATE_ERR_4*RB developer only
ICE_STATE_ERR_CODEError code (0 = Normal)Page 3 lower table
ICE_STATE_RD1=Ready to IceOut / 0=IceOut done or TimeoutPage 3 middle table

3. Function Description


3.1 icevan_update_start(#)

  • icevan_update_start(#)

    Start requesting status/setting information from the ice machine

    Input :

    1: Data request Start
    0: Data request End

    Example :

    icevan_update_start(1)

3.2 icevan_set_mode(#, #)

  • icevan_set_mode(#, #)

    Select the operation mode of the ice machine (Ref. Icevan Manual Chap.1)

    Input :

    First value:
    1: Communication Mode (via RS232)
    0: Normal Mode

    Second value:
    1: Ignore cup-depart (Ice will be out even if the cup is departed)
    0: Stop the ice-out when the cup is departed

    Example :

    icevan_set_mode(1, 1) # Set the operation mode of the ice machine to communication mode

3.3 icevan_set_timeout(#)

  • icevan_set_timeout(#)

    Ice dispensing timeout setting (timeout when ice is not removed) (Ref. Icevan Manual Chap.6)

    Input :

    Time (Unit: second)

    Example :

    icevan_set_timeout(600)

3.4 icevan_set_airtemp(#, #)

  • icevan_set_airtemp(#, #)

    Set for the ambient temperature limit (lower/upper settings) (Ref. Icevan Manual Chap.8)

    Input :

    First value : Lower temperature setting : (0~10)
    Second value : Upper temperature setting : (40~70)

    Example :

    icevan_set_airtemp(5, 65)

3.5 icevan_out(#, #)

  • icevan_out(#, #)

    Most core function. Ice/Water output function (Ref. Icevan Manual Chap.2)

    Input :

    First value : Time for ice-out (Unit: second)
    Second value : Time for water-out (Unit: second)

    Example :

    icevan_out(5.7, 0) # Make Ice during 5.7 second and water during 0 second

3.6 icevan_reset()

  • icevan_reset()

    Reset machine (Ref. Icevan Manual Chap.7)

    Input :

    None

    Example :

    icevan_reset()

3.7 icevan_clear()

  • icevan_clear()

    Clear all information (As explained by Ice Van manual, this function exists but doesn't work.)

    Input :

    None

    Example :

    icevan_clear()