15. CustomLogic
15.1 Overview
15.1.1 Using CustomLogic
CustomLogic is used in PICUS to create and configure customised logical operations for use in the system. These functions are built
using ladder logic elements and can include interaction with external equipment, or more advanced logic interfaces.
More information
See CustomLogic in the PICUS manual for more information about CustomLogic and logic project examples.
15.1.2 CustomLogic inputs and outputs (optional)
Assign CustomLogic inputs and outputs under Configure > Input/output. Select the hardware module, then select the input/output to
configure.
Table 15.1
CustomLogic inputs and outputs (optional)
Function I/O Type Details
Local > CustomLogic >
CustomLogic digital input (×
20)
Digital
input
Pulse/
continuous
If this input is activated, then the controller activates the
corresponding CustomLogic digital input function.
The controller can execute the logic in a CustomLogic Project once
every 200 milliseconds. If an input signal is not available for at least
200 milliseconds there is a risk that the input signal will not be
detected by the controller.
Local > CustomLogic >
Outputs > CustomLogic
digital output (× 20)
Digital
output
Pulse/
continuous
If CustomLogic activates the digital output function, then the
controller activates the digital output.
Local > CustomLogic > State
> Is enabled
Digital
output
Continuous
If the parameter Configure > Parameters > Local > CustomLogic >
Configuration > Enable is Enabled, then the controller activates this
output.
15.1.3 CustomLogic parameters
Configure Enable CustomLogic parameter under Configure > Parameters > Local > CustomLogic > Configuration.
Table 15.2
Enable CustomLogic
Parameter Range Default Comment
Enable
Not enabled,
Enabled
Not enabled
Not enabled: The controller ignores the CustomLogic projects. The inputs and
outputs remain assigned to CustomLogic and cannot be used elsewhere.
Enabled: The controller executes the CustomLogic project.
Configure the Stored flags parameters under Configure > Parameters > Local > CustomLogic > Stored flags.
DESIGNER'S HANDBOOK 4189340911K UK Page 475 of 521