While I realize this may seem simple for many and some will respond with remarks like RTFM, RTFM doesn't help me because it has no useable examples that tell me what I need to do and my knowledge/experience programming them is pretty much non-existent and I don't have 10 years to become a PLC guru.
The PLC is to be used with a tool changer. and it's functionality I'm told is rudimentary in comparison to the average PLC use.
I'm told if I don't code it correctly I can make the PLC unusable by preventing access to upload code by disabling or not enabling stuff so I'm not writing it to the PLC until I know it's good and understand what code needs to be included to allow me to continue writing to it.
The exact model is LK1N/LK2N-20MT (STM32F103RBT6 on board)
I believe I have covered all of the input/output requirements and have the basics coded and this is where I'm stuck.
There really is only one function which is to home the carousel and return it to it's starting position (if not already at home).
This is the function I am having an issue with as it requires working with DATA and the manual shows me no usable working examples and finding examples online seems difficult (or I just don't know how to search properly for any) or so complicated that I can't see the forest through the trees.
At startup (run), I've got to start at the current carousel position, count each up pulse of the position sensor until the home sensor is reached and then return to the starting position, if starting on home then just set it and then set a flag so the function doesn't run again.
I've added some states and timers to take into account things like drawbar activation/deactivation and shuttle extend/retract take time and use a busy/ready signal to prevent command issues and believe I have a solid starting point but could really use some help from someone who knows how to program these things really well to prevent me from doing something wrong or stupid.
I've attached the IO assignment and the GX Developer project for those looking to help me out.
The PLC is to be used with a tool changer. and it's functionality I'm told is rudimentary in comparison to the average PLC use.
I'm told if I don't code it correctly I can make the PLC unusable by preventing access to upload code by disabling or not enabling stuff so I'm not writing it to the PLC until I know it's good and understand what code needs to be included to allow me to continue writing to it.
The exact model is LK1N/LK2N-20MT (STM32F103RBT6 on board)
I believe I have covered all of the input/output requirements and have the basics coded and this is where I'm stuck.
There really is only one function which is to home the carousel and return it to it's starting position (if not already at home).
This is the function I am having an issue with as it requires working with DATA and the manual shows me no usable working examples and finding examples online seems difficult (or I just don't know how to search properly for any) or so complicated that I can't see the forest through the trees.
At startup (run), I've got to start at the current carousel position, count each up pulse of the position sensor until the home sensor is reached and then return to the starting position, if starting on home then just set it and then set a flag so the function doesn't run again.
I've added some states and timers to take into account things like drawbar activation/deactivation and shuttle extend/retract take time and use a busy/ready signal to prevent command issues and believe I have a solid starting point but could really use some help from someone who knows how to program these things really well to prevent me from doing something wrong or stupid.
I've attached the IO assignment and the GX Developer project for those looking to help me out.
Attachments
-
14.5 KB Views: 20
-
1.1 KB Views: 26