FAL Management Entity provides the following six services shown in Table 25.
Table 25 – FAL management entity services
No. service name description
1 EM_DetectingDevice This service is used to find the information of device. It is transferred by unicast or broadcast
2 EM_OnlineReply This service is used as the reply to the EM_DetectingDevice service.
3 EM_ConfiguringDevice This service is used to set the attribute of a device.
4 EM_GetDeviceAttribute This service is used to read the attribute of a device.
5 EM_SetDefaultValue This service is use to clear its configuration data.
6 EM_ActiveNotification This service is used to periodically announce the presence of the device on the network
6.2.4.1.1 EM_DetectingDevice service 6.2.4.1.1.1 Overview
EM_DetectingDevice is an unconfirmed service. It is used to query the IP address of a device by PD_Tag to locate it on the network. This service is often sent using broadcast. A device may not receive any reply or receive several replies at the same time. The device receiving this query request primitive replies using EM_OnlineReply service.
An offline-configured device should query its PD_Tag using EM_DetectingDevice service to detect the PD_Tag conflict when it is connected on the network.
6.2.4.1.1.2 Service primitives
The service parameters for EM_DetectingDevice service are shown in Table 26.
Table 26 – EM_DetectingDevice service parameters
Parameter name Req Ind
Argument QueryType PD_Tag FB Tag Element ID
M M M M
M (=) M (=) M (=) M (=)
Argument
The argument specifies the parameters of the service request.
QueryType
This parameter selects the following types to query:
0: PD_Tag query 1: FB Tag query 2: ElementID query PD_Tag
This parameter specifies the Physical Device Tag.
FB tag
This parameter specifies the tag of a function block. It is required for FB tag queries.
Element ID
This parameter specifies a reference to the object of a FB parameter. The FB Tag shall also be present because ElementID is not unique outside of one FB.
6.2.4.1.1.3 Service procedure
The Unconfirmed Service Procedure specified in IEC 61158-1, Clause 9 applies to this service.
6.2.4.1.2 EM_OnlineReply service 6.2.4.1.2.1 Service overview
This service is used to send a reply to the initiator of an EM_DetectingDevice request. It returns Device ID and PD_Tag of the device queried.
6.2.4.1.2.2 Service primitives
The service parameters for EM_OnlineReply service are shown in Table 27.
Table 27 – EM_OnlineReply service parameters
Parameter name Req Ind
Argument Query Type
Duplicate Tag Detected Queried Object IP Address Queried Object Device ID Queried Object PD_Tag
M M M M M
M (=) M (=) M (=) M (=) M (=)
Argument
The argument specifies the parameters of the service request.
QueryType
This parameter selects the type of query.
0: the following parameter specifies the information by PD_Tag query 1: the following parameter specifies the information by FB Tag query 2: the following parameter specifies the information by ElementID query Duplicate tag detected
This parameter describes the duplicated status of PD_Tag among devices.
Queried object IP address
This parameter specifies the IP address of the device queried.
Queried object device ID
This parameter specifies the ID of the device queried. Its length is 32 octets.
Queried object PD_Tag
This parameter specifies the PD_Tag of the device queried. Its length is 32 octets.
6.2.4.1.2.3 Service procedure
The Unconfirmed Service Procedure specified in IEC 61158-1, Clause 9 applies to this service.
6.2.4.1.3 GetDeviceAttribute service 6.2.4.1.3.1 Service overview
EM_GetDeviceAttribute is a confirmed service. The host sends a request to get attributes of the device. After receiving EM_GetDeviceAttribute service, the device sends a Result (+) to the configuration application if performing normally, or else the AL Management entity sends a Result (–) to the configuration application.
6.2.4.1.3.2 Service primitives
The service parameters for EM_GetDeviceAttribute service are shown in Table 28.
Table 28 – EM_GetDeviceAttribute service parameters
Parameter name Req Ind Rsp Cnf
Argument
Destination IP Address
Result (+) Device ID PD_Tag Status Device Type
Annunciation Interval
Annunciation Version Number Duplicate Tag Detected Device Redundancy Number LAN Redundancy Port Device Redundancy State Max Redundancy Number Active IP Address
Result (–) Error Type
M M (=)
S M M M M M M M M M M M M
S M
S (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=)
S (=) M (=) NOTE The method by which a confirm primitive is correlated with its corresponding preceding request primitive is a local matter. The method by which a response primitive is correlated with its corresponding preceding indication primitive is a local matter. See 1.2.
Argument
The argument specifies the parameters of the service request.
Destination IP address
This parameter specifies the destination IP address to which the service request is to be sent.
Result (+)
This selection type parameter indicates that the service request succeeded.
Device ID
This parameter specifies the identifier of the device.
PD_Tag
This parameter specifies the Physical Device Tag.
Status
This parameter specifies the following status of the device.
0: no address 1: unconfigured 2: configured
Device type
This parameter specifies the type of the device.
Annunciation interval
This parameter specifies the interval of sending the DeviceAnnunciation message.
Annunciation version number
This parameter specifies the version number of the message annunciated.
Duplicate tag detected
This parameter describes the duplicated status of PD_Tag among devices.
Device redundancy number
This parameter specifies the redundancy number of the device. Its value is 0 and the following parameters are invalid when the device is active.
LAN redundancy port
This conditional parameter specifies the value of the Port used to receive LAN Redundancy messages. It is present in the response primitive if the value of Redundancy Number is not 0.
Device redundancy state
This parameter specifies the following redundancy status of the device.
0: active status
1: redundancy status, it is present in the response primitive if the value of Redundancy Number is not 0
Max redundancy number
This parameter specifies the max redundancy number of the device. It is present in the response primitive if the value of Redundancy Number is not 0.
Active IP address
This parameter specifies the IP address of the active device. It is present in the response primitive if the value of Redundancy Number is not 0.
Result (–)
This selection type parameter indicates that the service request failed.
Error type
This parameter specifies the reason that caused failure.
6.2.4.1.3.3 Service procedure
The Confirmed Service Procedure specified in IEC 61158-1, Clause 9 applies to this service.
6.2.4.1.4 DeviceAnnunciation service 6.2.4.1.4.1 Service overview
DeviceAnnunciation is an unconfirmed service. The device periodically sends this service request at the rate specified by Annunciation Interval to inform the configuration application.
This service is often sent by broadcast.
6.2.4.1.4.2 Service primitives
The service parameters for EM_ActiveNotification service are shown in Table 29.
Table 29 – EM_ActiveNotification service parameters
Parameter name Req Ind
Argument Device ID PD_Tag Status Device Type
Annunciation Version Number Device Redundancy Number Device Redundancy State LAN Redundancy Port Duplicate Tag Detected Max Redundancy Number Active IP Address
M M M M M M M M M M M
M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=)
Argument
The argument specifies the parameters of the service request.
Device ID
This parameter specifies the identifier of the device.
PD_Tag
This parameter specifies the Physical Device Tag.
Status
This parameter specifies the following status of the device.
0: no address 1: unconfigured 2: configured Device type
This parameter specifies the type of the device. It is used to describe the functions of the device as defined by the manufacturer.
Annunciation version number
This parameter specifies the version number of the message annunciated.
Device redundancy number
This parameter specifies the redundancy number of the device.
LAN redundancy port
This conditional parameter specifies the value of the Port used to receive LAN Redundancy messages.
Duplicate tag detected
This parameter describes the duplicated status of PD_Tag among devices.
Max redundancy number
This parameter specifies the max redundancy number of the device.
Active IP address
This parameter specifies the IP address of active device.
6.2.4.1.4.3 Service procedure
The Unconfirmed Service Procedure specified in IEC 61158-1, Clause 9 applies to this service.
6.2.4.1.5 EM_ConfiguringDevice service 6.2.4.1.5.1 Service overview
EM_ConfiguringDevice is a confirmed service which is sent using unicast. User application sends this service request to set the PD_Tag and others attributes of the device.
In order to avoid error, the DeviceID parameter within the request shall be equal to the DeviceID of the device. When executing, if the device has already has a PD_Tag, it shall clear its PD_Tag at first using EM_SetDefaultValue service.
6.2.4.1.5.2 Service primitives
The service parameters for EM_ConfiguringDevice service are shown in Table 30.
Table 30 – EM_ConfiguringDevice service primitives
Parameter name Req Ind Rsp Cnf
Argument
Destination IP Address Device ID
PD_Tag
Annunciation Interval Duplicate Tag Detected Device Redundancy Number LAN Redundancy Port Device Redundancy State Max Redundancy Number Active IP Address
Result (+)
Max Redundancy Number
Result (–) Error Type
M M M M M M M M M M
M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=) M (=)
S M
S M
S (=) M (=)
S (=) M (=) NOTE The method by which a confirm primitive is correlated with its corresponding preceding request primitive is a local matter. The method by which a response primitive is correlated with its corresponding preceding indication primitive is a local matter. See 1.2.
Argument
The argument specifies the parameters of the service request.
Destination IP address
This parameter is the IP address to which the service request is to be sent.
Device ID
This parameter specifies the id of the device. Its length is 32 octets.
PD_Tag
This parameter specifies the Physical Device Tag. Its length is 32 octets.
Annunciation interval
This parameter specifies the interval of sending annunciation message. Its unit is second.
Duplicate tag detected
This parameter describes the duplicated status of PD_Tag among devices.
Device redundancy number
This parameter specifies the redundancy number of the device. Its value is 0 and the following parameters are invalid when the device is active.
LAN redundancy port
This conditional parameter specifies the value of the Port used to receive LAN Redundancy messages.
Device redundancy state
This parameter specifies the following redundancy status of the device.
0: active status
1: redundancy status, it is present in the response primitive if the value of Redundancy Number is not 0
Max redundancy number
This parameter specifies the max redundancy number of the device. It is present in the response primitive if the value of Redundancy Number is not 0.
Active IP address
This parameter specifies the IP address of active device. It is present in the response primitive if the value of Redundancy Number is not 0.
Result (+)
This selection type parameter indicates that the service request succeeded.
Max redundancy number
This parameter specifies the max redundancy number of the device. It is present in the response primitive if the value of Redundancy Number is not 0.
Result (–)
This selection type parameter indicates that the service request failed.
Error type
This parameter specifies the reason that caused failure.
6.2.4.1.5.3 Service procedure
The Confirmed Service Procedure specified in IEC 61158-1, Clause 9 applies to this service.
6.2.4.1.6 EM_SetDefaultValue service 6.2.4.1.6.1 Service overview
EM_SetDefaultValue is a confirmed service which is sent by unicast. User application sends this service request to clear the PD_Tag and set attributes of the device to default value. In order to avoid error, the parameter (DeviceID and PD_Tag) within the request shall be equal to the DeviceID and PD_Tag of the device.
6.2.4.1.6.2 Service primitives
The service parameters for EM_ConfiguringDevice service are shown in Table 31.
Table 31 – EM_SetDefaultValue service parameter
Parameter name Req Ind Rsp Cnf
Argument
Destination IP Address Device ID
PD_Tag
Result (+)
Result (–) Error Type
M M M M
M (=) M (=) M (=) M (=)
S
S M
S (=)
S (=) M (=) NOTE The method by which a confirm primitive is correlated with its corresponding preceding request primitive is a local matter. The method by which a response primitive is correlated with its corresponding preceding indication primitive is a local matter. See 1.2.
Argument
The argument specifies the parameters of the service request.
Destination IP address
This parameter is the IP address to which the service request is to be sent.
Device ID
This parameter specifies the id of the device. Its length is 32 octets.
PD_Tag
This parameter specifies the Physical Device Tag. Its length is 32 octets.
Result (+)
This selection type parameter indicates that the service request succeeded.
Result (–)
This selection type parameter indicates that the service request failed.
Error type
This parameter specifies the reason that caused failure.
6.2.4.1.6.3 Service procedure
The Confirmed Service Procedure specified in IEC 61158-1, Clause 9 applies to this service.