gerael
Member
Hey all,
This is a great site. I'm fairly new to PLC programming, but learning quite quickly.
My issue is that I don't know where to begin with structuring a program that will for the most part use serial strings to control several motor drivers via RS232.
The big concern is that the CP1H can only use one TXD command per cycle which means that I need to write code to sequence the commands to the driver. I have been able to successfully sequence a basic group of commands using shift registers, however, I am not sure how I'm going to sequence larger/more complex commands.
Later in development, I will need to send queries for position data and motor torque data. This received data will be displayed and then additional move commands will be sent afterwards.
Should I be looking into programming using cyclic tasks, interupt tasks, the built in stepping/jumping functions, function blocks, or what?
PLCS just don't seem to be the right tool for manually controlling motor drivers via RS232 because of the one command per cycle limitation.
Just to be clear, I don't need help making the devices communicate. I know how to send commands. I just don't know how to structure and sequence my program.
This is a great site. I'm fairly new to PLC programming, but learning quite quickly.
My issue is that I don't know where to begin with structuring a program that will for the most part use serial strings to control several motor drivers via RS232.
The big concern is that the CP1H can only use one TXD command per cycle which means that I need to write code to sequence the commands to the driver. I have been able to successfully sequence a basic group of commands using shift registers, however, I am not sure how I'm going to sequence larger/more complex commands.
Later in development, I will need to send queries for position data and motor torque data. This received data will be displayed and then additional move commands will be sent afterwards.
Should I be looking into programming using cyclic tasks, interupt tasks, the built in stepping/jumping functions, function blocks, or what?
PLCS just don't seem to be the right tool for manually controlling motor drivers via RS232 because of the one command per cycle limitation.
Just to be clear, I don't need help making the devices communicate. I know how to send commands. I just don't know how to structure and sequence my program.