Execution of Application in Standard Mode
Original instructions
At a Glance
To work in standard mode you need to use a PLC and Analog I/O modules to assign outputs to different sensors and actuators.
The variables used in simulation mode must be modified. In standard mode, variables must be located to be associated to physical I/Os.
NOTE: For more information on addressing, refer to chapter Data Instances
Input Wiring
The sensor is connected as follows.
The assignment of the 20 pins terminal block is as follows.
Output Wiring
The display is connected as follows.
The assignment of the 20 pins terminal block is as follows.
Application Hardware Configuration
The table below shows the procedure for configuring the application.
Step
Action
1
In the Project browser double-click on Configuration then on 0:Bus X and on 0:BMX XBP ••• (where 0 is the rack number).
2
In the Bus X window, select a slot, for example 3 and double-click on it.
3
Insert an analog input module, for example BMX AMI 0410 The module appears on th ePLC Bus; Double-click on it..
4
In the 0.1 : BMX 0410 window, it’s possible to configure the range and the scale of the used channels. For this application, configure the channel 0 to range 0..10V
5
Click in the channel 0 Scale zone. A windows opens.
Define the different values as shown in the the figure below:
Assignment of Variables to Input Module
The table below shows the procedure for direct addressing of variables.
Step
Action
1
In the Project browser and in Variables & FB instances, double-click on Elementary variables.
2
In the Data editor window, select the box in the Name column and enter a name (Sensor_value for example). Select an INT type for this variable.
3
In the Address column, enter the analog value address associated with the variable.
For this example, associate the Sensor_value variable with configured analog input channel by entering the address %IW0.1.0.
Illustration:
NOTE: Repeat the same procedure for declaring and configuring the analog output module BMX AMO 0210.
Input/Output Values Conversion
In this application, the level and the pump value are REAL type and the analog modules use integers. So Integer/Real conversions must be applied in a MAST task.
The screen below shows the I/O conversion section, written in DFB, using the Library Function BLock.
Application Execution
The table below shows the procedure for launching the application in standard mode.
Step
Action
1
In the PLC menu, click on Standard Mode,
2
In the Build menu, click on Rebuild All Project. Your project is generated and is ready to be transferred to the PLC. When you generate the project, you will see a results window. If there is an error in the program, Control Expert indicates its location if you click on the highlighted sequence.
3
In the PLC menu, click on Connection. You are now connected to the PLC.
4
In the PLC menu, click on Transfer project to PLC. The Transfer project to PLC window opens. Click on Transfer. The application is transferred to the PLC.
5
In the PLC, click on Execute. The Execute window opens. Click on OK. The application is now being executed (in RUN mode) on the PLC.