Está en la página 1de 6

Referencia rpida tramas IEC-101

Longitud de Datos de Usuario:

L = C + A + APDU
Capa fsica
Capa de enlace
Capa de aplicacin

PRM:

1 - Maestro
0 - Esclavo
Cuando es maestro:
FCV (Frame Count Valid)
1 - Se tiene en cuenta FCB
0 - No se considera FCB
FCB (Frame Count Bit)
Alterna su valor 1, 0, 1, 0, etc. Cuando el esclavo
recibe un mensaje, compara este bit con el del
mensaje anterior. Si son iguales, el esclavo interpreta
que ha perdido el ltimo mensaje que haba enviado y
retransmite dicho mensaje.
Cuando es esclavo:
ACD (Access Demand)
1 - Hay datos de clase 1
0 - No hay datos clase 1
DFC (Data Flow Control)
1 - Se indica al maestro que podra no
aceptarse la recepcin de ms mensajes
0 - Se pueden recibir ms mensajes

Byte Control de Enlace (C):

Cdigos de funcin para PRM = 1 (Maestro)

Cdigos de funcin para PRM = 0 (Esclavo)

Campo CHECKSUM
Este campo codifica la suma mdulo 256 de C, A y APDU, para tramas de longitud variable; y de C, y A para
tramas de longitud fija. Es decir se codifica el byte menos significativo de la suma binaria de dichos campos.
Ejemplo: Para la trama (caracteres representados en hexadecimal):
Cabecera

68 0A 0A 68

C
53

A
26

APDU
2E 01 06 26 00 DD 59 81

CHK
8B

Cola

16

CHK = 53 + 26 + 2E + 01 + 06 + 26 + 00 + DD + 59 + 81 = 02 8B 8B
Pgina 1

miguelangel.sanchez@sacnet.es

Estructura de una Unidad de Datos del Servicio de Aplicacin (ASDU)


IDENTIFICACIN DE TIPO
(TYPE IDENTIFICATION)

TIPO DE UNIDAD DE DATOS


(DATA UNIT TYPE)

CUALIFICADOR DE ESTRUCTURA
(VARIABLE STRUCTURE QUALIFIER)
CAUSA DE TRANSMISIN
(CAUSE OF TRANSMISSION)
CAUSA DE TRANSMISIN
(CAUSE OF TRANSMISSION)
DIRECCIN COMN DEL ASDU
(COMMON ADDRESS OF ASDU)

IDENTIFICADOR DE LA
UNIDAD DE DATOS
(DATA UNIT IDENTIFIER)

DIRECCIN COMN DEL ASDU


(COMMON ADDRESS OF ASDU)

ASDU

DIRECCIN DEL OBJETO DE INFORMACIN


(INFORMATION OBJECT ADDRESS)
DIRECCIN DEL OBJETO DE INFORMACIN
(INFORMATION OBJECT ADDRESS)

INDENTIFICADOR DEL OBJETO DE


INFORMACIN
(INFORMATION OBJECT
IDENTIFIER)

DIRECCIN DEL OBJETO DE INFORMACIN


(INFORMATION OBJECT ADDRESS)

OBJETO INFORMACIN 1
(INFORMATION OBJETC 1)

CONJUNTO DE ELEMENTOS DE
INFORMACIN
(SET OF INFORMATION ELEMENTS)

MARCA DE TIEMPO O TIMETAG


*
*
*
*
*
*
*
*

OBJETO INFORMACIN n
(INFORMATION OBJETC n)

CONJUNTO DE ELEMENTOS DE
INFORMACIN
(SET OF INFORMATION ELEMENTS)

MARCA DE TIEMPO O TIMETAG

RangosIOA

TPP Descripcin

Mnimo

Mximo

SP
DP
ME
SC
IT
ST
SE
DC
RC
SE

1.000
11.000
13.000
15.000
17.000
19.000
21.000
23.000
25.000
27.000

10.999
12.999
14.999
16.999
18.999
20.999
22.999
24.999
26.999
28.999

9.999
1.999
1.999
1.999
1.999
1.999
1.999
1.999
1.999
1.999

SealizacinSimple
SealizacinDoble
MedidasAnalgicas
ComandosSimples
Contadores
PosicionesdeTrafos
Com.SetPoint(Normaliz.)
ComandoDobles
Comandosderegulacin
Com.SetPoint(Escaladas)

Pgina 2

Longitudes campos variables:


-Link Address
Fase 1
Fase 2
-Causa de transmisin (COT)
-Direccin comn del ASDU
-Information Object Address (IOA)

- 1 byte
- 2 bytes
- 1 byte
- 2 bytes
- 2 bytes

miguelangel.sanchez@sacnet.es

Identificadores de tipo para IEC 60870-5-101


Process information in monitor direction
01h (1)
02h (2)
03h (3)
04h (4)
05h (5)
06h (6)
07h (7)
08h (8)
09h (9)
0Ah (10)
0Bh (11)
0Ch (12)
0Dh (13)
0Eh (14)
0Fh (15)
10h (16)
11h (17)
12h (18)
13h (19)
14h (20)
15h (21)

:= Single-point information
:= Single-point information with time tag
:= Double-point information
:= Double-point information with time tag
:= Step position information
:= Step position information with time tag
:= Bitstring of 32 bit
:= Bitstring of 32 bit with time tag
:= Measured value, normalized value
:= Measured value, normalized value with time tag
:= Measured value, scaled value
:= Measured value, scaled value with time tag
:= Measured value, short floating point value
:= Measured value, short floating point value with time tag
:= Integrated totals
:= Integrated totals with time tag
:= Event of protection equipment with time tag
:= Packed start events of protection equipment with time tag
:= Packed output circuit information of protection equipment with time tag
:= Packed single-point information with status change detection
:= Measured value, normalized value without quality descriptor

M_SP_NA_1
M_SP_TA_1
M_DP_NA_1
M_DP_TA_1
M_ST_NA_1
M_ST_TA_1
M_BO_NA_1
M_BO_TA_1
M_ME_NA_1
M_ME_TA_1
M_ME_NB_1
M_ME_TB_1
M_ME_NC_I
M_ME_TC_1
M_IT_NA_1
M_IT_TA_1
M_EP_TA_1
M_EP_TB_1
M_EP_TC_1
M_PS_NA_1
M_ME_ND_1

1Eh (30)
1Fh (31)
20h (32)
21h (33)
22h (34)
23h (35)
24h (36)
25h (37)
26h (38)
27h (39)
28h (40)

:= Single-point information with time tag CP56Time2a


:= Double-point information with time tag CP56Time2A
:= Step position information with time tag CP56Time2A
:= Bitstring of 32 bit with time tag CP56Time2A
:= Measured value, normalized value with time tag CP56Time2A
:= Measured value, scaled value with time tag CP56Time2A
:= Measured value, short floating point value with time tag CP56Time2A
:= Integrated totals with time tag CP56Time2A
:= Event of protection equipment with time tag CP56Time2A
:= Packed start events of protection equipment with time tag CP56time2A
:= Packed output circuit information of protection equipment with time tag CP56Time2a

M_SP_TB_1
M_DP_TB_1
M_ST_TB_1
M_BO_TB_1
M_ME_TD_1
M_ME_TE_1
M_ME_TF_1
M_IT_TB_1
M_EP_TD_1
M_EP_TE_1
M_EP_TF_1

Process information in control direction


2Dh (45)
2Eh (46)
2Fh (47)
30h (48)
31h (49)
32h (50)
33h (51)

:= Single command
:= Double command
:= Regulating step command
:= Set point command, normalized value
:= Set point command, scaled value
:= Set point command, short floating point value
:= Bitstring of 32 bit

C_SC_NA_1
C_DC_NA_1
C_RC_NA_1
C_SE_NA_1
C_SE_NB_1
C_SE_NC_1
C_BO_NA_1

System information in monitor direction


46h (70)

:= End of initialization

M_EI_NA_1

System information in control direction


64h (100) := Interrogation command
65h (101) := Counter interrogation command
66h (102) := Read command
67h (103) := Clock synchronization command
68h (104) := Test command
69h (105) := Reset process command
6Ah (106) := Delay acquisition command

C_IC_NA_1
C_CI_NA_1
C_RD_NA_1
C_CS_NA_1
C_TS_NB_1
C_RP_NC_1
C_CD_NA_1

Parameter in control direction


6Eh (110)
6Fh (111)
70h (112)
71h (113)

:= Parameter of measured value, normalized value


:= Parameter of measured value, scaled value
:= Parameter of measured value, short floating point value
:= Parameter activation

P_ME_NA_1
P_ME_NB_1
P_ME_NC_1
P_AC_NA_1

File transfer
78h (120) := File ready
79h (121) := Section ready
7Ah (122) := Call directory, select file, call file, call section
7Bh (123) := Last section, last segment
7Ch (124) := Ack file, ack section
7Dh (125) := Segment
7Eh (126) := Directory

F_FR_NA_1
F_SR_NA_1
F_SC_NA_1
F_LS_NA_1
F_AF_NA_1
F_SG_NA_1
F_DR_TA_1

Pgina 3

miguelangel.sanchez@sacnet.es

Cualificador de estructura

SQ = 0: Cada objeto lleva su IOA


SQ = 1: Se especifica el IOA del primer elemento, y
el resto son consecutivos

Causa de Transmisin
T: Modo test
P/N: Confirmacin positiva (a 0) negativa (a 1)

Causas de transmisin
1Ah (26)
1Bh (27)
1Ch (28)
1Dh (29)
1Eh (30)
1Fh (31)
20h (32)
21h (33)
22h (34)
23h (35)
24h (36)
25h (37)
26h (38)
27h (39)
28h (40)
29h (41)
2Ch (44)
2Dh (45)
2Eh (46)
2Fh (47)

(0)
:= Not used
(1) =: periodic/cyclic
(2)
:= background scan
(3) =: spontaneous
(4) =: initialized
(5)
:= request or requested
(6) =: activation
(7)
:= activation confirmation
(8) =: deactivation
(9)
:= deactivation confirmation
0Ah (10) := activation termination
0Bh (11) := return information caused by a remote command
0Ch (12) := return information caused by a local command
0Dh (13) := file transfer
14h (20)
15h (21)
16h (22)
17h (23)
18h (24)
19h (25)

:= Interrogated by general interrogation


:= Interrogated by group 1 interrogation
:= Interrogated by group 2 interrogation
:= Interrogated by group 3 interrogation
:= Interrogated by group 4 interrogation
:= Interrogated by group 5 interrogation

:= Interrogated by group 6 interrogation


:= Interrogated by group 7 interrogation
:= Interrogated by group 8 interrogation
:= Interrogated by group 9 interrogation
:= Interrogated by group 10 interrogation
:= Interrogated by group 11 interrogation
:= Interrogated by group 12 interrogation
:= Interrogated by group 13 interrogation
:= Interrogated by group 14 interrogation
:= Interrogated by group 15 interrogation
:= Interrogated by group 16 interrogation
:= Interrogated by general counter request
:= Interrogated by group 1 counter request
:= Interrogated by group 2 counter request
:= Interrogated by group 3 counter request
:= Interrogated by group 4 counter request
:= unknown type identification
:= unknown cause of transmission
:= unknown common address of ASDU
:= unknown information object address

Single point

Single command

Double point

SCS - 0: Off; 1: On

Double command

0 - Transitorio
1 - Off

2 - On
3 - Indeterminado

DCS - 0 y 3 no permitidos; 1: Off; 2: On

Indicador de posicin de paso

Calificador de comando

T - 0: No Transitorio; 1: Transitorio

S/E: 0: Ejecucin; 1: Seleccin


QU (Duracin del comando):
- 0: Sin definicin adicional
- 1: Pulso duracin corta
- 2: Pulso duracin larga
- 3: Salida persistente

Pgina 4

miguelangel.sanchez@sacnet.es

Descriptor de calidad

Tiempo binario en 7 bytes

Comando de regulacin de paso

RCS (Estado del comando de regulacin):


- 0: No permitido
- 1: Paso anterior (-)
- 2: Paso siguiente (+)
- 3: No permitido
QOC ver siguiente figura.

MILISEGUNDOS: Milisegundos del tiempo dado


(segundos * 1000 + milisegundos) (0 a 59999).
IV: Validez hora (0: Vlido; 1: Invlido)
RES1, 2, 3, 4: Campos reserva.
MINUTOS: Minutos del tiempo dado (0 a 59).
SU: Horario Verano/Invierno.
0: Invierno (Standard Time)
1: Verano (Summer Time)
HORAS: Horas del tiempo dado (0 a 23).
DIA SEMANA: Da de la semana (No utilizado en IEC 60870-5-101).
DIA MES: Da del mes (1 a 31).
MES: Mes del tiempo dado (1 a 12).
AO: Ao del tiempo dado (0 a 99).

Calificador de interrogacin

QOI: Calificador.

14h (20) := Interrogacin de estacin (GLOBAL)


<21> := Interrogacin de grupo 1.
<22> := Interrogacin de grupo 2.
<23> := Interrogacin de grupo 3.
<24> := Interrogacin de grupo 4.
<25> := Interrogacin de grupo 5.
<26> := Interrogacin de grupo 6.
<27> := Interrogacin de grupo 7.
<28> := Interrogacin de grupo 8.
<29> := Interrogacin de grupo 9.
<30> := Interrogacin de grupo 10.
<31> := Interrogacin de grupo 11.
<32> := Interrogacin de grupo 12.
<33> := Interrogacin de grupo 13.
<34> := Interrogacin de grupo 14.
<35> := Interrogacin de grupo 15.
<36> := Interrogacin de grupo 16.

Calificador de comando de SET-POINT

S/E: 0: Ejecucin; 1: Seleccin


QL: Valor a 0. Uso reservado.

Calificador de reset del proceso

Valor normalizado y escalado


NVA y SVA

QRP: 1: Reset general; 2: Reset de incidencias pendientes (vaciado del


buffer de eventos). Resto de casos no usados.

CAUSA DE INICIACIN

S: Signo (0: Positivo; 1: Negativo)

UI: Causa de iniciacin.

<0> := Encendido local

<1> := Reset manual local.

<2> := Reset remoto.


BS: Parmetros locales

<0> := Iniciacin sin cambiar los parmetros locales

<1> := Iniciacin tras cambiar parmetros locales.

Pgina 5

miguelangel.sanchez@sacnet.es

Pgina 6

miguelangel.sanchez@sacnet.es