0
0
SCADA systemsdevops~10 mins

OPC UA modern architecture 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 OPC UA server endpoint URL.

SCADA systems
server.set_endpoint("opc.tcp://[1]:4840")
Drag options to blanks, or click blank then click option'
Aexample.com
B192.168.1.100
Clocalhost
D0.0.0.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using a domain name instead of an IP address
Using 'localhost' when remote access is needed
2fill in blank
medium

Complete the code to add a variable node to the OPC UA address space.

SCADA systems
myvar = server.nodes.objects.add_variable(2, "MyVariable", [1])
Drag options to blanks, or click blank then click option'
A42
B"Hello"
CTrue
D3.14
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of a number
Using a boolean when a number is expected
3fill in blank
hard

Fix the error in the code to start the OPC UA server.

SCADA systems
server.[1]()
Drag options to blanks, or click blank then click option'
Aopen
Brun
Claunch
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' or 'launch' which are not valid methods
Using 'open' which is unrelated
4fill in blank
hard

Fill both blanks to create a subscription and add a monitored item.

SCADA systems
subscription = server.create_subscription([1], handler)
handle = subscription.[2](myvar)
Drag options to blanks, or click blank then click option'
A1000
Bsubscribe_data_change
Ccreate_monitored_item
D500
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong method names
Using incorrect interval values
5fill in blank
hard

Fill all three blanks to define a secure OPC UA client connection.

SCADA systems
client = Client("opc.tcp://[1]:4840")
client.[2] = "Basic256Sha256"
client.[3]()
Drag options to blanks, or click blank then click option'
A192.168.10.10
Bsecurity_policy
Cconnect
Dsecurity_mode
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong property names
Using incorrect IP addresses
Calling wrong methods to connect