Bird
Raised Fist0
SCADA systemsdevops~10 mins

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

Choose your learning style10 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.

Practice

(1/5)
1. What is the primary purpose of the IEC 60870-5 protocol in SCADA systems?
easy
A. To encrypt data for secure internet browsing
B. To store historical data in databases
C. To enable communication between power system devices
D. To provide user interface design standards

Solution

  1. Step 1: Understand the protocol's role

    IEC 60870-5 is designed for communication in power systems, connecting devices like RTUs and control centers.
  2. Step 2: Eliminate unrelated options

    Options about databases, UI design, and internet encryption do not relate to device communication in power systems.
  3. Final Answer:

    To enable communication between power system devices -> Option C
  4. Quick Check:

    IEC 60870-5 = communication protocol [OK]
Hint: Remember: IEC 60870-5 connects power devices [OK]
Common Mistakes:
  • Confusing communication protocol with data storage
  • Thinking it handles user interface design
  • Assuming it encrypts internet data
2. Which of the following is a correct characteristic of IEC 60870-5 protocol messages?
easy
A. They include structured fields for data and commands
B. They only support wireless communication
C. They use unstructured free text for data
D. They require manual data entry at each device

Solution

  1. Step 1: Recall message format

    IEC 60870-5 messages have structured fields to clearly define data and commands.
  2. Step 2: Check other options

    Unstructured text, wireless-only support, and manual data entry are incorrect for this protocol.
  3. Final Answer:

    They include structured fields for data and commands -> Option A
  4. Quick Check:

    Structured messages = They include structured fields for data and commands [OK]
Hint: Look for 'structured fields' in message descriptions [OK]
Common Mistakes:
  • Assuming messages are free text
  • Believing protocol only supports wireless
  • Thinking manual entry is required
3. Given a device using IEC 60870-5-101 protocol, which communication method is it most likely using?
medium
A. Wireless Wi-Fi communication
B. Bluetooth low energy
C. Internet Protocol (IP) over Ethernet
D. Serial communication over RS-232 or RS-485

Solution

  1. Step 1: Identify protocol version

    IEC 60870-5-101 is designed for serial communication using RS-232 or RS-485 interfaces.
  2. Step 2: Compare options

    Wi-Fi, IP over Ethernet, and Bluetooth are not typical for 101 version; those relate more to 104 or other protocols.
  3. Final Answer:

    Serial communication over RS-232 or RS-485 -> Option D
  4. Quick Check:

    60870-5-101 = serial comm [OK]
Hint: 101 version means serial communication [OK]
Common Mistakes:
  • Confusing 101 with 104 (network-based)
  • Assuming wireless communication
  • Selecting Ethernet/IP for 101
4. A SCADA engineer configures an IEC 60870-5-104 device but cannot establish communication. The device is set to use serial port settings. What is the likely issue?
medium
A. The serial port baud rate is too high for 104 protocol
B. The device should be configured for network (TCP/IP) communication, not serial
C. The device requires manual data entry to start communication
D. The IEC 60870-5-104 protocol does not support communication

Solution

  1. Step 1: Understand protocol communication type

    IEC 60870-5-104 uses network communication over TCP/IP, not serial ports.
  2. Step 2: Identify misconfiguration

    Configuring 104 device for serial communication causes failure; it must use network settings.
  3. Final Answer:

    The device should be configured for network (TCP/IP) communication, not serial -> Option B
  4. Quick Check:

    104 = network, not serial [OK]
Hint: 104 protocol requires TCP/IP network setup [OK]
Common Mistakes:
  • Trying to use serial settings with 104
  • Changing baud rate unnecessarily
  • Thinking manual data entry is needed
5. You need to design a SCADA communication system that supports both serial and network devices using IEC 60870-5 protocols. Which approach best ensures compatibility?
hard
A. Use IEC 60870-5-101 for serial devices and IEC 60870-5-104 for network devices
B. Use only IEC 60870-5-104 for all devices regardless of connection type
C. Use IEC 60870-5-101 for network devices and IEC 60870-5-104 for serial devices
D. Use a custom protocol to replace IEC 60870-5 entirely

Solution

  1. Step 1: Identify protocol roles

    IEC 60870-5-101 is designed for serial communication; 104 is designed for network (TCP/IP) communication.
  2. Step 2: Match protocols to device types

    Using 101 for serial and 104 for network devices ensures compatibility and proper communication.
  3. Step 3: Evaluate other options

    Using only 104 ignores serial devices; swapping roles is incorrect; custom protocol is unnecessary.
  4. Final Answer:

    Use IEC 60870-5-101 for serial devices and IEC 60870-5-104 for network devices -> Option A
  5. Quick Check:

    101 = serial, 104 = network [OK]
Hint: Match 101 to serial, 104 to network devices [OK]
Common Mistakes:
  • Using 104 for serial devices
  • Ignoring serial device support
  • Trying to replace IEC 60870-5 unnecessarily
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard