Skip to content

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.

AcronymTypeAccess
IRInputRead
IWInputRead/Write
IXInputNo access
OROutputRead
OWOutputRead/Write
OXOutputNo access
IORInOutRead
IOWInOutRead/Write
IOXInOutNo access
SRStaticRead
SWStaticRead/Write
SXStaticNo access
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