Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to define the communication protocol used to connect field devices to SCADA.
PLC Programming
protocol = "[1]"
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing protocols like HTTP or FTP which are not typical for SCADA device communication.
✗ Incorrect
Modbus is a common protocol used to connect field devices to SCADA systems because it supports industrial communication.
2fill in blank
mediumComplete the code to set the data format for SCADA communication.
PLC Programming
data_format = "[1]"
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting text-based formats like XML or HTML which are less efficient for SCADA communication.
✗ Incorrect
Binary format is often used in SCADA protocols for efficient data transmission between field devices and SCADA.
3fill in blank
hardFix the error in the code to correctly initialize the SCADA connection protocol.
PLC Programming
scada_connection = Protocol('[1]')
Attempts:
3 left
💡 Hint
Common Mistakes
Using general internet protocols like HTTP or FTP which are not suitable for SCADA.
✗ Incorrect
Modbus is the correct protocol to initialize for SCADA field device communication.
4fill in blank
hardFill both blanks to create a dictionary mapping device IDs to their communication protocols.
PLC Programming
device_protocols = { [1]: '[2]' }Attempts:
3 left
💡 Hint
Common Mistakes
Mixing device IDs with protocol names or using incorrect protocol strings.
✗ Incorrect
Device ID 101 is mapped to the Modbus protocol, which is typical for SCADA field devices.
5fill in blank
hardFill all three blanks to filter devices using Modbus protocol and create a list of their IDs.
PLC Programming
modbus_devices = [device[1] if proto [2] '[3]']
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect comparison operators or missing iteration syntax.
✗ Incorrect
The list comprehension iterates over devices, checks if protocol equals 'Modbus', and collects device IDs.
