C h a p t e r 6 W r i t i n g a P r o g r a m6 - 36_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 theconveyor (Y0.0) starts. When the STOP button (X0.1) switches from OFF to ON, an error occurs (the errorflag 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 inposition 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 inposition 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 ISPSoftThis section shows you the procedure for creating a project in ISPSoft. You can adjust the procedure accordingto your needs. Hardware configurationYou set the parameters such as a range of latched devices and a port number in a PLC. You configure themodules with an AS Series CPU module, and set the parameters in these modules. Network configurationIf a system uses a network architecture, or devices need to exchange data, use the network configurationtool NWCONFIG in ISPSoft to configure a network and exchange data with COM as well as Ethernet. ProgrammingAfter you write a program in ISPSoft, compile the program. If the compiling is unsuccessful, messages inthe Compile Message page show where the errors occur. Testing and debuggingDownload the compiled program, the hardware configuration, and the network configuration to a PLC. Youcan 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 thefollowing procedure.