Step 3: creation of the control program
Double-click the PLC icon, then single-click the Edit PLC Application button in the centre window.The PLC GF_ProjectVX code programming tool will be activated.We will now insert the control programme.Single-click Project – New object – New program on the top menu.
Select LD in the Language selection.Write on the “Name” filed the name of the program: CNT_MOTOR.Select on the combo box “Task – Assign to” the desidered position (i.e. Normal).Press OK.CNT_MOTOR will be added to the “Normal” list in the Project window and will be opened in the edit window.The edit window is divided into two parts:
Compile the project with key F7.Connect to the target via icon (Go Online/Offline) and download the program . Respond Yes to the question that will be asked.
On the top menu select View – Tool windows – Watch list to show the watch window.Open the CARDS_IO and drag and drop all the variables (IN_START, IN_STOP, IN_EMERGENCY, OUT_RUN) from the project list to the watch list window. Repeat this operation with the variable added on CNT_MOTOR (I_OUT_RUN).
Double-click the names of the variables in the watch window to modify the content of the variables and simulate the behaviour of the process.To go out press again the icon (Go Online/Offline) and through menu File, select Exit.
Alternatively you can compile and transfer the PLC through the deployment window. In this case the system may to be not download, requiring a transfer firmware. (See Step 5)
- the variables editor at the top
- the Ladder chart at the bottom.