Example #1
0
def setAutostart(ser):
    spcom(ser, b'SET START\r\n')
Example #2
0
def BTN_PROD_PSA2_clicked(ser, state):
    if (state):
        spcom(ser, b'PROD PSA2 1\r\n')
    else:
        spcom(ser, b'PROD PSA2 0\r\n')
Example #3
0
def BTN_COL2_IN_clicked(ser, state):
    if (state):
        spcom(ser, b'COL2 IN   1\r\n')
    else:
        spcom(ser, b'COL2 IN   0\r\n')
Example #4
0
def BTN_PSA2_CLR_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA2 CLR  1\r\n')
    else:
        spcom(ser, b'PSA2 CLR  0\r\n')
Example #5
0
def BTN_PROD_OUT_clicked(ser, state):
    # print("prod_out")
    if (state):
        spcom(ser, b'PROD OUT  1\r\n')
    else:
        spcom(ser, b'PROD OUT  0\r\n')
Example #6
0
def BTN_PSA2_BAL_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA2 BAL  1\r\n')
    else:
        spcom(ser, b'PSA2 BAL  0\r\n')
Example #7
0
def BTN_PSA1_IN_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA1 IN   1\r\n')
    else:
        spcom(ser, b'PSA1 IN   0\r\n')
Example #8
0
def BTN_PSA2_PRO_clicked(ser, state):
    if (state):
        spcom(ser, b'PSA2 PRO  1\r\n')
    else:
        spcom(ser, b'PSA2 PRO  0\r\n')
Example #9
0
def setPause(ser):
    spcom(ser, b'PAUSE\r\n')
Example #10
0
def setRun(ser):
    spcom(ser, b'RUN\r\n')
Example #11
0
def setManual(ser):
    spcom(ser, b'SET MANUAL\r\n')
Example #12
0
def setAutorepeat(ser):
    spcom(ser, b'SET REPEAT\r\n')