<< Click to Display Table of Contents >> Navigation: »No topics above this level« Sandbox variable |
mapp Services V5.16
A MpCodeBoxCore configuration must be added for each MpCodeBox instance. A "sandbox" variable can be specified in the configuration.
The Sandbox variable can be used to perform a secure download. The MpCodeBox function blocks access the addresses of process variables. Since addresses can change during a download, it is not recommended to work directly with the PVs to start machine processes, for example. Instead, the values of the sandbox variable can be mapped to local process variables via a PV mapping. This ensures a secure download.
This sandbox variable can be used to enable/disable different commands, for example. StartConveyor, StartHeating and StopGreenLight would be some examples of these commands.
Example of a Ladder Diagram program:
A macro should be used to enable the heating unit on a machine. For this purpose, action "StartHeater" is created in the MpCodeBox configuration. As soon as the action is active, the heating unit should be enabled via the sandbox variable.
The sandbox variable is specified in the MpCodeBoxCore configuration:
The sandbox variable is mapped via a PV mapping to the variable that enables the heating unit: