Specifications

199PLC Code for PROFINET Controller
(c) 2013 MITSUBISHI ELECTRIC CORPORATION
Alarm Handling
Variable Setting
Automatic handling
vPN_MGMT_OUTPUTS.IOD_MGT_ALARM[device index] = 0
Manual handling
vPN_MGMT_OUTPUTS.IOD_MGT_ALARM[device index] = 1
If automatic handling has been selected for an IO-device, the IO-controller automatically acknowled-
ges each alarm received from the respective IO-device and the alarm indication flags
'vPN_MGMT_INPUTS.IOD_ALARM_IND' are not used. If manual handling has been selected, an
alarm indication is passed to the PLC program by setting the bit with the index of the respective IO-
device in 'vPN_MGMT_INPUTS.IOD_ALARM_IND[device index]'.
Call FB 'Alarm_Request'
The input 'ID' contains the IO-device number '22'. By setting M30 the alarm request is started. M31
indicates that the requested data has been written to the global variable 'Alarm_data1'. This function
block accesses the global variables 'vPN_MGMT_INPUTS' and vPN_MGMT_OUTPUTS.
8.1.6 Function Block 'Alarm_Ack'
This function block sends the 'acknowledge alarm' frame to the IO-device.
Variable
Class
Type
Description
REQ
Input
Bool
Start alarm ack.
BUFFER_2
Bool
0=Buffer 1 for acyclic request is used
1=Buffer 2 for acyclic request is used