Creating a PLC project and integrating PLC libraries
Here you can unpack the complete PLC sources: TutorialSample.zip
- Start TwinCAT PLC Control.
- Create a new PLC project via File -> New. Select PC or CX (x86 or ARM) as the target system.
- A new MAIN program block will now be created automatically. Select ST (Structured Text) as the language for the block. Confirm.
- From the menu select Window -> Library Management and then Insert -> Further Library...
- Select TcIEC870_5_104Slave.Lib from the list of TwinCAT libraries and confirm.