![]() ![]() IF FIO.iAtLeftEntry THEN (* When there’s a pallet at the entry of the conveyer *) Pallet_on_left := FALSE (* Reset Pallet_on_left *) IF F_AtLeftExit.Q THEN (* When a pallet abandons the conveyer *) (* Pallet_on_left represents the state of the left exit conveyer: if it carries a pallet, then Pallet_on_left = TRUE *) These variables will be used to exchange data between Factory I/O and CODESYS through Modbus TCP (these are the I/O points).į_AtRightEntry(CLK := FIO.iAtRightEntry) į_AtLeftEntry(CLK := FIO.iAtLeftEntry) (* A pallet abandons the turntable, being charged onto the left exit conveyer *)į_AtLeftExit(CLK := FIO.iAtLeftExit) (* A pallet abandons the left exit conveyer *) Open the FIO list by Double Left-clicking on it and copy and paste the following global variables. Right-click on Application and select Add Object > Global variable List. On the Standard Project window select the Device CODESYS Control Win V3 (3S - Smart Software Solutions GmbH) and Structured Text (ST) for the PLC_PRG. Select Standard project from the Templates list and choose a name for the project (e.g. The sample code used in this tutorial is based on the solutions found in the book Industrial Automation Practices. This tutorial shows how to connect CODESYS to Factory I/O through Modbus TCP.īy following these instructions, you will create a new CODESYS project, configure it to work with Factory I/O and program CODESYS Control Win (SoftPlc) to control the Sorting by Height (Advanced) scene. CODESYS v3.5 SP16 or higher (works with demo version).Modbus & OPC Edition or Ultimate Edition. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |