#Sys2PLC

Top  Previous  Next

The #Sys2PLC object is used to synchronize the values of two variables. These variables must be of the same data type, the only exception being the conversion of String to WString (see Conversion).

 

Parameters

Object

Column A, object

M/O

Default

Description

#Sys2PLC

M


Synchronizing variables

Text/File

Column B, Text/File

M/O

Default

Description

<Sys2PLC.txt>

M


Sys2PLC definition with variable list.

 

Conversions

Variable1 and Variable2 must be of the same data type in all cases.

 

The following conversions are supported (in both directions):

Type1

Type2

WSTRING

STRING

 

 

Icon-Hinweis        Triggering a screen page change in the PLC

The #Sys2Plc object makes it possible to trigger a screen page change by pairing the EPAM system variable /S/SYS/NewPage with a PLC variable, e.g. PLC/NewPagename. If, for example, the variable PLC/NewPagename in the PLC project is set with the value ‘#Page=<name>’, the value ‘#Page=<name>’ is transferred to the EPAM system variable and a screen page change is executed to page <name>.