0
0
SCADA systemsdevops~10 mins

RTU (Remote Terminal Unit) role 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 define the primary function of an RTU in a SCADA system.

SCADA systems
def rtu_role():
    return "[1]"
Drag options to blanks, or click blank then click option'
AUser interface management
BData collection from field devices
CDatabase administration
DNetwork routing
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing RTU with HMI (Human Machine Interface)
Thinking RTU manages network routing
2fill in blank
medium

Complete the code to show how an RTU communicates data to the SCADA master station.

SCADA systems
def send_data_to_master(data):
    protocol = "[1]"
    # send data using protocol
    return f"Data sent via {protocol}"
Drag options to blanks, or click blank then click option'
AHTTP
BSMTP
CModbus
DFTP
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing HTTP which is common for web, not RTU communication
Selecting SMTP which is for email
3fill in blank
hard

Fix the error in the RTU data processing function by completing the blank.

SCADA systems
def process_rtu_data(raw_data):
    # Convert raw data to usable format
    processed = [1](raw_data)
    return processed
Drag options to blanks, or click blank then click option'
Aparse_data
Bsend_data
Cconnect
Dshutdown
Attempts:
3 left
💡 Hint
Common Mistakes
Using send_data which is for sending, not processing
Using connect which is for network connections
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps sensor IDs to their latest readings from RTU data.

SCADA systems
latest_readings = {sensor_id: data[1] for sensor_id, data in rtu_data.items() if data[2] 0}
Drag options to blanks, or click blank then click option'
A[0]
B>
C==
D[-1]
Attempts:
3 left
💡 Hint
Common Mistakes
Using [0] to get first reading instead of last
Using == 0 which filters only zero readings
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps sensor names (uppercase) to their values if the value is above threshold.

SCADA systems
filtered_data = [1]: [2] for [3], [2] in sensor_data.items() if [2] > threshold}
Drag options to blanks, or click blank then click option'
Asensor.upper()
Bvalue
Csensor
Ddata
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'data' instead of 'value' for readings
Not converting sensor names to uppercase