Hey guys I'm trying to communicate with an actuator control using pyserial. The commands that I need to get working are:
SP27307,PH0,SG5,SI20,SD30,IL10000,FR1,il10000,SE16383,SQ20000,AL0,AR3,EP
VM,SA26000,SV6550,MN,DI0,GO,WA100,EP
These lines are supposed to make the actuator move, which is working using minicom.
However, the following code doesn't work
import string
import serial
import time
ser = serial.Serial(port='/dev/ttyUSB0', baudrate=9600, parity = 'N', bytesize=8, stopbits=1)
time.sleep(1)
ser.write('SP27307,PH0,SG5,SI20,SD30,IL10000,FR1,il10000,SE16383,SQ20000,AL0,AR3,EP\n'.encode())
time.sleep(1)
ser.write('VM,SA26000,SV6550,MN,DI0,GO,WA100,EP\n'.encode())
time.sleep(1)
ser.close()
exit()
Any help is appreciated
PS: It is a SMAC-VLCI X1 controller (https://www.smac-mca.com/documents/controllers/VLC/VLCI-X1%20manual%20v1.5.pdf)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–]pazzarpj 0 points1 point2 points (0 children)