3 OMRON E5CK digital controller   

In the next two chapters we will explain how to hook some industrial controllers to RaPID. In this chapter we will treat the OMRON E5CK digital controller. The next chapter is about the Bailey Fisher & Porter 53Sl6000 digital controller.

It is important to consult the manual of the digital controller first before it is connected to the PC running RaPID.

Before the OMRON E5CK digital controller can be used with RAPID it is necessary that the controller is fully configured. This can be done manually by the push buttons or by appropriate software delivered by OMRON (see OMRON manual cat. No. H078-E1-2B). The user is free to configure most of the controller parameters as he wants. Some parameters must be set specific for the use with RAPID. These are:

Notice that these parameters may not be changed during the RaPID sessions. It takes to much time for RaPID to check if some parameters where adapted during the session. RaPID therefore assumes that, once the parameters are set, they are not changed anymore.

The OMRON digital controller must be connected to the PC as pointed out in Chapter 6 of the OMRON manual.

Now RAPID can start communicating with the OMRON controller if the serial port base address    of the computer is known by RAPID. This address must be given to the RAPID configuration program. These values can be found in Windows 95 under (My Computer $\rightarrow$ Control Panel $\rightarrow$ System $\rightarrow$ properties $\rightarrow$ Device Manager $\rightarrow$Ports $\rightarrow$ Communication port 1 (2) $\rightarrow$ Properties $\rightarrow$ Resources . Typical values of the base address are given in table 3.1

 
Table 3.1: Typical serial port base addresses
Port number Base Address
Com Port 1 03f8 hex
Com Port 2 02f8 hex
 

Rapid only changes the following parameters in the OMRON E5CK:


 
Table 3.2: Communication parameters for OMRON E5CK digital controller
Parameter name setting
Communication stop bits 1
Communication data length 7
Communication parity even
Communication baud rate 19200
Communication unit No.  
 

All other parameters must be set by the user. The important parameters that are needed by RAPID to calculate the gains and the scaling parameters of the controller are retrieved by RAPID from the controller. See Appendix A of the user manual for more information about these parameters.

Note that the $\alpha$ parameter, which is used for advanced PID control is put default to 0.65 by OMRON. The on board auto tuners of OMRON do not manipulate this parameter. RAPID changes this parameter also to set the optimal control parameters. The $\alpha$parameter can however only be changed in the expansion mode of the OMRON E5CK. Returning from the expansion mode to the normal operation mode can only be done via a reset of the digital controller. So every time the $\alpha$ parameter is changed the controller is reset. This can not be avoided and the user should first take the consequences of this resetting into account. During the reset time the controller does not control the plant.

Since RAPID must retrieve the process value and the control output from the controller every sample time and send the desired setpoint and control parameters, a lot of serial port communication is needed between the PC and digital controller. since the maximum baud rate of the communication is limited to 19200 Baud the real time part of RAPID takes a lot of CPU resources from the PC although it mainly waits for the digital controller to respond via the serial communication. The sampling rate of the OMRON E5CK is fixed to 4 Hz for temperature inputs and 10 Hz for voltage or current inputs. A pentium 133 can easily communicate at 4 Hz with the digital controller such that there is enough time left for windows to manipulate the mouse signals and respond to the mouse button clicks. At 10 Hz however there are almost no resources left on the PC. It is therefore wise to define a 4 Hz, or slower, sample rate within the RAPID environment. The controller itself will still work at 4 or 10 Hz.       This sub sampling is in practice always needed since the processes that are controlled by this type controller are generally very slow.



Peter Van Overschee
11/26/1997