4. Configuration
148
Type of Object
Types of IEC Variables
Single Point Information (M_SP_NA)
BOOL
BIT
Double Point Information (M_DP_NA)
DBP
Step Position Information (M_ST_NA)
USINT
Measured Value, normalized value (M_ME_NA)
INT
Measured Value, scaled value (M_ME_NB)
INT
Measured Value, short floating point value (M_ME_NC)
INT
UINT
DINT
UDINT
REAL
Integrated Totals (M_IT_NA)
INT
DINT
Single Command (C_SC_NA)
BOOL
BIT
Double Command (C_DC_NA)
DBP
Regulating Step Command (C_RC_NA)
DBP
Setting Point Command, normalized Value (C_SE_NA )
INT
Setting Point Command, scaled Value (C_SE_NB )
INT
Setting Point Command, short floating point Value (C_SE_NC )
REAL
Table 4-101. IEC 60870-5-104 Variable Declaration
Notes:
Regulating Step Command:
The states
Lower
and
Higher
(C_RC_NA object) are associated
respectively to the states
OFF
and
ON
the internal type DBP.
Step Position Information :
As defined in item 7.3.1.5 of the IEC 60870-5-101 standard, this 8-bit
variable is composed of two fields: Value (defined by 7 bits least significant of the variable) and
Transiently (defined as the most significant bit, which indicates when the measured device is
transitioning).
Below is the sample code for manipulating the fields in a variable of type USINT. This code is not
the input value is within the range, so this consistency is borne by the user.
PROGRAM UserPrg
VAR
usiVTI
: USINT;
// Value with transient state indication,
mapped for the Client.
siValue
: SINT;
// Value to be converted to VTI. Must be
between -64 and +63.
bTransient : BOOL;
// Transient to be converted to VTIEND_VAR.
END_VAR
usiVTI := SINT_TO_USINT(siValue AND 16#3F);
IF siValue < 0 THEN
usiVTI := usiVTI OR 16#40;
END_IF
IF bTransient THEN
usiVTI := usiVTI OR 16#80;
END_IF
IEC 60870-5-104 Server
This protocol is available for Hadron Xtorm Series CPUs in its Ethernet channels. When you select
this option in MasterTool Xtorm, the CPU becomes IEC 60870-5-104 communication server,