G
Guest
I'm not a programmer, but have a decent brain. I want to send commands to a
RS232 controlled relay pack by actuating command buttons on a ppt screen. Is
there a simple code to send these commands? I have code for the relay pack
i.e...
MSComm1.Output = Chr$(254) 'enters command mode
MSComm1.Output = Chr$(9) 'turns off any relays
MSComm1.Output = Chr$(1) 'enters single relay-on mode
MSComm1.Output = Chr$(relay - 1) 'selects relay to activate
I'd also like to have the program repeat the relay off command after 15
seconds and wait for the next button activation.
RS232 controlled relay pack by actuating command buttons on a ppt screen. Is
there a simple code to send these commands? I have code for the relay pack
i.e...
MSComm1.Output = Chr$(254) 'enters command mode
MSComm1.Output = Chr$(9) 'turns off any relays
MSComm1.Output = Chr$(1) 'enters single relay-on mode
MSComm1.Output = Chr$(relay - 1) 'selects relay to activate
I'd also like to have the program repeat the relay off command after 15
seconds and wait for the next button activation.