Exemple #1
0
def setAutostart(ser):
    spcom(ser, b'SET START\r\n')
Exemple #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')
Exemple #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')
Exemple #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')
Exemple #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')
Exemple #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')
Exemple #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')
Exemple #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')
Exemple #9
0
def setPause(ser):
    spcom(ser, b'PAUSE\r\n')
Exemple #10
0
def setRun(ser):
    spcom(ser, b'RUN\r\n')
Exemple #11
0
def setManual(ser):
    spcom(ser, b'SET MANUAL\r\n')
Exemple #12
0
def setAutorepeat(ser):
    spcom(ser, b'SET REPEAT\r\n')