0
0
SCADA systemsdevops~10 mins

IEC 60870-5 protocol in SCADA systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the IEC 60870-5 protocol port number.

SCADA systems
protocol_port = [1]
Drag options to blanks, or click blank then click option'
A2404
B502
C8080
D102
Attempts:
3 left
💡 Hint
Common Mistakes
Using HTTP port 8080 instead of IEC 60870-5 port.
2fill in blank
medium

Complete the code to import the IEC 60870-5 protocol library in Python.

SCADA systems
import [1]
Drag options to blanks, or click blank then click option'
Arequests
Bscapy
Ciec60870
Dsocket
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'socket' which is generic, not protocol-specific.
3fill in blank
hard

Fix the error in the code to create an IEC 60870-5 client connection.

SCADA systems
client = iec60870.Client('[1]', 2404)
Drag options to blanks, or click blank then click option'
A192.168.1.100
Blocalhost
Chttp://192.168.1.100
D255.255.255.255
Attempts:
3 left
💡 Hint
Common Mistakes
Including 'http://' in the IP address string.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension filtering IEC 60870-5 messages with priority above 3.

SCADA systems
filtered_msgs = {msg_id: msg for msg_id, msg in messages.items() if msg[1] [2] 3}
Drag options to blanks, or click blank then click option'
A.priority
B>
C<=
D.type
Attempts:
3 left
💡 Hint
Common Mistakes
Using '.type' instead of '.priority' or wrong comparison operator.
5fill in blank
hard

Fill all three blanks to build a dictionary of message IDs and their values where value is above 100.

SCADA systems
result = [1]: [2] for [3] in data.items() if value > 100
Drag options to blanks, or click blank then click option'
Amsg_id
Bvalue
Cmsg_id, value
Dmessage
Attempts:
3 left
💡 Hint
Common Mistakes
Using single variable 'message' instead of unpacking key and value.