gmschoon Posted July 25, 2017 Share Posted July 25, 2017 Hi, We have a scenario where we need to have either a plc or cplc program open, fill and close motion buffers with all move details, before executing the move. We cannot use motion programs directly, as the moves are not known in advance, but will be sent via the rtiplc routine. Further, the plc programs cannot be used to define motion directly, as we require blended moves, but only "rapid" is possible from plc programs. Is it possible to achieve this through a plc program, other than using "cmd" & "sendallcmds" to fill the buffers? Similarly, for cplc are there options to fill an axis motion buffer other than using "Command"? Thanks Link to comment Share on other sites More sharing options...
Amar Posted July 25, 2017 Share Posted July 25, 2017 Hi, We have a scenario where we need to have either a plc or cplc program open, fill and close motion buffers with all move details, before executing the move. We cannot use motion programs directly, as the moves are not known in advance, but will be sent via the rtiplc routine. Further, the plc programs cannot be used to define motion directly, as we require blended moves, but only "rapid" is possible from plc programs. Is it possible to achieve this through a plc program, other than using "cmd" & "sendallcmds" to fill the buffers? Similarly, for cplc are there options to fill an axis motion buffer other than using "Command"? Thanks You can use Rotary Motion Programs. Link to comment Share on other sites More sharing options...
gmschoon Posted July 26, 2017 Author Share Posted July 26, 2017 You can use Rotary Motion Programs. Indeed, we could use rotary buffers, however filling and closing a set of "fixed" motion buffers is not really the issue. Filling fixed motion buffers in a motion program ".pmc" is clear, however we want to fill motion buffers (rotary/fixed) from a .plc program or cplc routine, and then execute the motion program. Based on the documentation, it does not appear that there is any other way than using "cmd" from a .plc program or by issuing "command()" from a .c routine. Thanks Link to comment Share on other sites More sharing options...
curtwilson Posted August 1, 2017 Share Posted August 1, 2017 Most users who want this functionality load a parameterized motion program into memory, then use the PLC program to set variable values to determine destinations, speeds, etc. and even modes of operation (for branching logic) if necessary. Link to comment Share on other sites More sharing options...
Recommended Posts