Create PLC project with A7 template in CODESYS

  • Start the CODESYS software that you have previously downloaded from the AMK homepage and installed on your computer

  • If you already have an existing project, you can open it here

 

  • Select the template 'A7D project' (1), enter project name and location (2), then confirm with 'OK' (3)

 

 

The template contains the following presettings:

Name

Meaning

 

FPLC_PRG (PRG)

Program block for real-time requests. Call up in the FPLC_TASK

PLC_PRG (PRG)

Cyclic program block, for all processes that not require real-time. Call up in the PLC_TASK

 

FPLC_TASK

Real-time task, synchronous to the bus cycle and synchronized to the position controller cycle of the drive, equidistant sampling, external event controlled via PGT (periphery basic clock), priority 1 (highest priority),

PLC_TASK

Cyclic task, cycle time (preset with 100 ms) adaptable to the application, priority 5

VISU_TASK

Cyclic task, cycle time (preset with 100 ms) adaptable to the application, priority 31 (low priority)

 

ETC_M (AmkEtC_M)

Library, provides EtherCAT functionality