Skip to main content

Kollmorgen Support Network

Action Blocks Program Organizational Units KAS | 21 Jul 2026 | |

Action Blocks Program Organizational Units KAS

Attached Action Blocks PLCopen ST Template.kas project reorganizes the 2 Axis PLCopen Structured Text Template project using new Action Blocks feature included in the 5.00 release of the KAS IDE. They are easier to call then subprograms since you do not have to pass them inputs (can automatically access all global variables and local variables to parent program). 

Action Blocks are a new way to organize program code. They are created by right clicking a Program from the Project Explorer and choosing to Add Action Block or Import Action Block (as shown in screenshot below). The Action Block code can be Structure Text, Function Block Diagram, Ladder Logic, or Instruction List, though they can only be called from a line in Structured Text code or the Action tab of a Sequential Function Chart step.

This sample project adds three Action Blocks to the Main program (FaultMonitor, SingleAxisMoves, and MultiAxisMoves). They are called from lines 42, 82, and 87 in the Main structured text program. 

Code in Action Blocks will animate identically to code in parent programs.

About this Article

Joe Parks