Chapter 6 Writing a Program 6.1.3 Program (1) When the START button (X0.0) switches from OFF to ON, the internal operation flag is set to ON, and the conveyor (Y0.0) starts. When the STOP button (X0.1) switches from OFF to ON, an error occurs (the error flag is ON), the operation flag is reset to OFF, and the conveyor stops. (2) When the in position sensor 1 (X0.2) is ON, the trigger signal for injector 1 (Y0.1) is set to ON. When the in position sensor 1 is OFF, the trigger signal for injector 1 is reset to OFF. (3) When the in position sensor 2 (X0.3) is ON, the trigger signal for injector 2 (Y0.2) is set to ON.
When the in position sensor 2 is OFF, the trigger signal for injector 2 is reset to OFF. (4) When the counting sensor (X0.4) switches from OFF to ON, the sensor value increases by one increment. If the sensor value is larger than or equal to 100, the internal completion flag is set to ON. 6.2 Procedure for Creating a Project in ISPSoft This section shows you the procedure for creating a project in ISPSoft. You can adjust the procedure according to your needs. Hardware configuration You set the parameters such as a range of latched devices and a port number in a PLC. You configure the modules with an AS Series CPU module, and set the parameters in these modules.
6_ Network configuration If a system uses a network architecture, or devices need to exchange data, use the network configuration tool NWCONFIG in ISPSoft to configure a network and exchange data with COM as well as Ethernet. Programming After you write a program in ISPSoft, compile the program. If the compiling is unsuccessful, messages in the Compile Message page show where the errors occur. Testing and debugging Download the compiled program, the hardware configuration, and the network configuration to a PLC. You can then test and debug the program online with the functions provided by ISPSoft.
Because the example introduced in this chapter does not discuss a network configuration, you only perform the following procedure. 6-3