Remote Access to Variables
In all FBs and DBs, we place an access acronym in the comment line of each data. This is to help the user who is creating the visualization program, with this acronym it will indicate if the data is input, output, input/output, static and if its access is read, write or no access.
| Acronym | Type | Access |
|---|---|---|
| IR | Input | Read |
| IW | Input | Read/Write |
| IX | Input | No access |
| OR | Output | Read |
| OW | Output | Read/Write |
| OX | Output | No access |
| IOR | InOut | Read |
| IOW | InOut | Read/Write |
| IOX | InOut | No access |
| SR | Static | Read |
| SW | Static | Read/Write |
| SX | Static | No access |
Example
Section titled “Example”FUNCTION_BLOCK "_foo"
VAR_INTPUT variable1 { ExternalWritable := 'False'} : Bool; // IR: Comment text END_VAR
VAR_OUTPUT variable2 { ExternalWritable := 'False'} : Bool; // OR: Comment text END_VAR
VAR_IN_OUT variable3: Bool; // IOW: Comment text END_VAR
VAR variable4: { ExternalAccesible := 'False'; ExternalVisible := 'False', ExternalWritable := 'False'}: Bool; // SX: Comment text END_VAR
END_FUNCTION_BLOCK