Detailed Description 
  2.12 Block descriptions 
PLC Basic Program Solution Line (P3 sl) 
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
2-175 
Error and operational messages are provided by the user in data block DB 2. 
 
 
Note 
In DB 2, a "1" signal must be present for several OB1 cycles to ensure that a message can 
also be displayed on the HMI. There is an upper limit for the number of interrupts and 
messages that can be pending at the same time. This upper limit is dependent on the PLC 
CPU. On PLC 317-2DP, the upper limit for messages pending simultaneously is 60. 
 
Declaration of the function 
STL representation 
 
FUNCTION FC 10:   Void 
// NAME:  AL_MSG 
VAR_INPUT  
  ToUserIF :  BOOL ; 
  Ack :  BOOL ; 
END_VAR  
END_FUNCTION  
Description of formal parameters 
The table below lists all formal parameters of the AL-MSG function. 
 
Signal  Type  Type  Value range  Remarks 
ToUserIF  I  Bool    1 = Transfer signals to user 
interface every cycle. 
Ack  I  Bool    1 = Acknowledge error messages. 
Call example 
 
CALL FC 10 (  //Error and operational messages 
  ToUserIF :=  TRUE,  //Signals from DB 2 are transferred 
//to interface 
  Ack :=  I6.1);  //Acknowledgment of  
//error message carried out via  
//input I6.1