Question:
Why must a project for a 9400 ServoPLC be compiled twice with the PLC Designer if it contains pragma instructions for creating user codes?
Answer:
The PLC Designer can only execute a pragma instruction and create the user codes for an FB instance in the Parameter Manager if the template ('template for codes') for this function block (FB) is already available in the Parameter Manager. If the template is not yet available during the first compilation process, the PLC Designer will generate the template from the pragma instructions defined in the attached libraries. In this case, the PLC Designer cannot yet create the user codes for the FB instance. Only in the second compilation process, all necessary templates will be available in the Parameter Manager and can be used by the PLC Designer to create the user codes for the FB instances.
The structure of pragma instructions is decribed in the manual for the 9400 ServoPLC.