Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to define the Profinet device name.
PLC Programming
device_name := '[1]';
Attempts:
3 left
💡 Hint
Common Mistakes
Using an IP address instead of a device name.
Using a generic term like 'Ethernet' as the device name.
✗ Incorrect
The device name in Profinet is a unique identifier like 'PN_Device_01'. IP addresses or generic terms are not device names.
2fill in blank
mediumComplete the code to set the Profinet communication cycle time in milliseconds.
PLC Programming
cycle_time_ms := [1];Attempts:
3 left
💡 Hint
Common Mistakes
Using too large a cycle time like 5000 ms which is too slow.
Using 1000 ms which is 1 second and slower than typical.
✗ Incorrect
A typical Profinet cycle time is 100 ms for standard communication.
3fill in blank
hardFix the error in the Profinet IP address assignment.
PLC Programming
profinet_ip := '[1]';
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers greater than 255 in any segment.
Leaving out segments or using letters in the IP address.
✗ Incorrect
IP addresses must be valid numbers between 0 and 255 in each segment. '192.168.1.100' is valid.
4fill in blank
hardFill both blanks to configure Profinet device and controller roles.
PLC Programming
device_role := '[1]'; controller_role := '[2]';
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'Client' and 'Server' roles with Profinet device and controller roles.
Assigning the same role to both device and controller.
✗ Incorrect
In Profinet, the device acts as 'Device' and the controlling unit as 'Controller'.
5fill in blank
hardFill all three blanks to create a Profinet device configuration dictionary.
PLC Programming
profinet_config := {
'[1]': '[2]',
'ip_address': '[3]'
}Attempts:
3 left
💡 Hint
Common Mistakes
Using 'controller_name' instead of 'device_name' as key.
Using invalid IP address format.
✗ Incorrect
The dictionary keys and values must correctly represent device name and IP address.
