PID_MMI Function: programming. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
广告
广告
Operator dialogue on CCX 17
PID_MMI Function: programming
Introduction The PID_MMI function supports establishment of the dialog with the PLCs to which the CCX 17 is connected. A PID_MMI function is necessary via CCX 17 for the steering, the display and the adjustment of the application’s PIDs.
The PID_MMI function is a standard PL7 function. As such, it is available from the functions library.
From the language editors there, it is possible to use the help of a PID_MMI function’s input to facilitate its programming.
Note: Inputting a PID_MMI function must be done in the task with the slowest period containing PIDs (MAST or FAST). The function does not have to be conditioned.
Example: An application with: l a FAST task at 10*10
-3
s containing PIDs, l a MAST task at 50*10
-3
s containing PIDs, the PID_MMI function must therefore be programmed in the MAST task.
Illustration The illustration below gives you a general idea of the Functions screen in the library supporting the implementation of the PID_MMI function.
EF DFB
Information Functions: Parameters
Family
Orphee Function
Stalling functions
GRAFCET
Single precision reals
Process Control
Integer tables
Call format
Lib.V App.V.
2.10
2.00
1.00
2.22
2.10
-
-
-
-
2.01 2.01
-
PID
PWM
Name
PID_MMI
SERVO
Parameters of the FUNCTION:
Name
ADDR
Type
AR_W
EN EBOOL
BUTT AR_X
PARA AR_Y
Kind
IN
Comment
Topological address of the destination CCX17 [ta>>
IN/OUT Activation of DOP on CCX17
IN/OUT
IN/OUT
5 bit table linked to the command buttons>>
PID_MMI parameters [62 word table]
Comment
Mixed PID regulator
Management of operator dialogue dedicated to CCX17 from PID
Modulated in the pulse width of a numerical size
PID output stage for open/close valve order
ADR#0.0.4
%M1
%M10:5
%MW45:62
Entry field
Call display
PID_MMI ( ADR#0.0.4,%M1,%MW10:5,%MW45:62 )
TLX DS 37 PL7 xxE
385
Operator dialogue on CCX 17
Syntax
Parameters of the PID_MMI function
The PID_MMI function’s call syntax is:
PID_MMI (ADDR, EN, BUTT, PARA)
The table below presents the different parameters of the PID_MMI function.
Parameter
ADDR
EN
Type Kind
IN = Input
OUT = Output
Description
%MWi:6 IN
%Mi IN / OUT
CCX 17’s address
Activation of the regulation operator dialog.
The application puts this bit to 1 and the PID_MMI function puts it back to 0 when you exit the regulation operator dialog (press Ex)
BUTT
PARA
%Mi:5
%MWi:62
IN / OUT
IN / OUT
Bits associated to the CCX 17 buttons.
These bits allow you to drive different screens as well as Manual/Auto.
Parameters of the PID_MMI.
The first 4 are the words of the communication report.
Note: The 4 words of the report are the same as in all the asynchronous communication functions (communication OF, integrated OF DOP and OF
PID_MMI). However the OF PID_MMI automatically manages these words and the application never has to modify them. They are provided for information.
For more information, refer to the Dialog operator (See Operator Dialog functions,
Example of the CCX 17:
If the CCX 17 is connected directly to the PLC’s (UNI-TELWAY) AUX socket, it is at the UNI-TELWAY 4-5 slave addresses.
The coding can be done: l via immediate value: PID_MMI(ADR#{0.254}0.0.4,....) or simply:
PID_MMI(ADR#0.0.4,....), l via a table of 6 words: %MW10:6 := ADR#0.0.4 PID_MMI(%MW10:6,...).
Synchronization of the dialog operator
The CCX 17 can be used to show screens other than the regulation screens. The IN bit is there to activate/deactivate the regulation dialog operator.
Setting IN to 1 activates the regulation operator dialog and is displayed on the PIDs’ selection screen.
386
TLX DS 37 PL7 xxE
Examples
Operator dialogue on CCX 17
The examples offered below are done in Ladder language.
%MI is associated to the IN bit (display switch on the operator). The alarm management application is always activated, just like the regulation operator dialog.
(*Management of display communication on the CCX 17*)
%M1
%L1
(*DOP application for the display of screens relative to PL7 *)
P
OPERATE
SEND_MSG(ADR#0.0.4,%KW20.6,%MW30:5)
(*DOP application for the display of adjustment screens *)
OPERATE
PID_MMI(ADR#0.0.4,%M1,%M10:5,%MW45:62)
(*Exchange flag bit calculation in progress *)
%MW45:X0 MSG_in_progress
%MW200:X0 error ala_900
R
(*Send alarm upon error appearance *) error MSG_in_progress %M1 OPERATE
SEND_ALARM(ADR#0.0.4,%KW140:29,%MW200:4) ala_900
S rz_ala_900
R
(* Cancellation of the alarm if it is sounded *) ala_900 rz_ala_900 OPERATE
PANEL_CMD(ADR#0.0.4,%KW170:3,%MW200:4) rz_ala_900
S
TLX DS 37 PL7 xxE
387
Operator dialogue on CCX 17
Management of the command buttons
When the PID_MMI is activated (IN at 1), it assigns the CCX 17 command buttons.
If the application uses these buttons for anything but regulation, they must be reassigned on the falling edge of IN (using the ASSIGN_KEYS function described in the DOP (See
Operator Dialog functions, p. 271)).
On the other hand, if the CCX 17 is only for regulation, it is advised that you carry out a non-conditioned SET of the IN bit in the application.
Selection of the
PIDs managed by the PID_MMI function
Each PID possesses a bit type DEVAL_MMI parameter. If this bit is at 1, the PID is not managed by PID_MMI. It is the only available level of protection. Moreover, if the application has more than 9 PIDs, it is the way to master those that are handled by the PID_MMI.
Alarm management
It is up to the user to program his/her own alarm management. This overlays itself on the management of the regulation screens.
If an alarm (coming from the dialog operator’s application) goes off while one of the
3 regulation screens is displayed, the CCX_17 is then dedicated to managing the alarm messages. When you return to the regulation operator dialog, the screen appears incomplete. Up/Dn or Refresh allows you to refresh this screen.
Several PID_MMI functions
It is possible to connect several CCX 17 terminals to the same PLC, so it can be useful to have several PID_MMI in the same application.
In this case, the different PID_MMI must be executed consecutively (no integrated
PID call) via the same PL7 task.
388
TLX DS 37 PL7 xxE
广告