MATT116
Member
I've been tasked with controlling 5 cotek power supply's using a redlion graphite HMI. I need to be able to adjust and read the current and voltage setting of each drive.
The cotek supports RS-232 and UART.
Since crimson does not have a prebuilt driver for cotek I'll have to write my own...
I'm assuming I'll need to set the RS-232 port to "Raw Serial" in crimson and use the PortPrint() and PortRead() commands?
From the cotek manual:
Use CR and LF for termination.
To Set Output Voltage Setting
Syntax: SV <value>
Parameter: value -> Voltage value for setting
To set output voltage to 11.95v the command is: SV 11.95 CR LF
Is it as simple as this in crimson?
PortPrint(1, SV MYTAG CR LF)
I've never had to write a driver before so any help is appreciated.
Thanks
The cotek supports RS-232 and UART.
Since crimson does not have a prebuilt driver for cotek I'll have to write my own...
I'm assuming I'll need to set the RS-232 port to "Raw Serial" in crimson and use the PortPrint() and PortRead() commands?
From the cotek manual:
Use CR and LF for termination.
To Set Output Voltage Setting
Syntax: SV <value>
Parameter: value -> Voltage value for setting
To set output voltage to 11.95v the command is: SV 11.95 CR LF
Is it as simple as this in crimson?
PortPrint(1, SV MYTAG CR LF)
I've never had to write a driver before so any help is appreciated.
Thanks
Last edited: