Complete the code to define the main communication protocol used in a Networked SCADA system.
protocol = "[1]"
The Modbus protocol is commonly used for communication in Networked SCADA systems because it is simple and widely supported.
Complete the code to specify the device that collects data from sensors in a Networked SCADA system.
device = "[1]"
A PLC (Programmable Logic Controller) collects data from sensors and controls actuators in SCADA systems.
Fix the error in the code that sets the SCADA server IP address.
scada_server_ip = "[1]"
IP addresses must be valid. 192.168.1.100 is a valid private IP address. Others have invalid octets or incomplete format.
Fill both blanks to create a dictionary mapping device names to their IP addresses in a Networked SCADA system.
devices = {"PLC1": "[1]", "RTU1": "[2]"}Both IP addresses must be valid. 192.168.0.10 and 10.0.0.5 are valid private IP addresses.
Fill all three blanks to define a function that sends a command to a SCADA device over the network.
def send_command(device_ip, command): import socket s = socket.socket(socket.AF_INET, socket.SOCK_[1]) s.connect((device_ip, [2])) s.sendall(command.[3]()) s.close()
The socket type for TCP is STREAM, port 502 is standard for Modbus TCP, and encode() converts the command string to bytes.