Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create a standard project and select CODESYS Control for PFC200/PFC100 SL as the device:



  • Establish a connection to the device.

    To do this, open the device dialog by double-clicking the device in the tree:



    Open the dialog by clicking the Scan network button. All detected devices of the type are listed:



    Select the corresponding device by double-clicking it.

    Note



    The last two characters correspond to the last part of the IP address (hexadecimal).


    CODESYS establishes a connection to the device and reads the device Information:




  • Now login to the device by clicking Online/Login. It is not necessary to start the application.

  • Open the scan dialog of the K-bus from the context menu.



    After a short time, all detected adapters are listed:



    There may be adapters with special subtypes that cannot be resolved.
    In these cases, you can click the ellipsis button to open another dialog where the adapter can be specified:



    Now all adapters can be added to the project by clicking the Copy all devices to project button.



  • Logout to the device by clicking Online/Logout.

  • Set the outputs and test the input adapters.

    Info

    In CODESYS, only that data is updated which is used in the program.
    For testing the adapters, open the PLC Settings tab in the device dialog and set Always update variables to Always update variables to Enabled 2 (always in bus cycle task).


    Image Added

  • Download the modified application to the controller by logging in again and start it by clicking Debug/Start.

    The symbols in the tree should now be green.
    In the I/O mapping of the respective adapter (double-click the adapter), you can set the outputs or view the current values of the input adapter.

    Image Added