How to Run an Acrobasic Program from IEC PLC

Products: ACR9600, 9630, 9640

The IEC PLC does not have the ability to execute AcroBasic commands such as RUN PROG0, but can set and clear ACR flags. Each AcroBasic program includes a Run Request Flag, for example Bit1032 for PROG0. Setting this flag runs the program, the flag will be cleared automatically by the processor after the start is initiated.

To find the Run Request Flag for other program, add 32 x program number to 1032.

For example, Prog9 run request flag=1032 + (32 x 9)=1320

A user function block is posted here that finds and sets the correct flag for any of the 16 AcroBasic programs. An error is generated if the program is outside of the valid 0-15 range. Import, open, then syntax check this FB to utilize in a project.

imgrunacro_4485-20240521-001001.jpg

 

19-Mar-2012  JW