The Shared RAM
Operating Manual XCA 1100 / XCA 1200
●
Version 12/17
135
10.4
Further Background Information on Shared RAM
The following elements are added or updated when inserting the
shared RAM in a PLC project:
The
SharedMemory_Types
data type worksheet; the data structure
of the shared RAM is declared here.
The data type worksheet is inserted for shared RAM version 8 or
higher. For earlier versions, no data type worksheet is inserted as
the declaration of the shared RAM structure is contained in the
associated user library
SchleicherLib_Vxxx
(shared RAM version 7 in
SchleicherLib_V007
, shared RAM version 6 in
SchleicherLib_V006
,
etc.).
The global variables
plcMem
(for PLC controllers) or
cncMem
(for
CNC controllers). See worksheet
Global_Variable
s, group
SharedMemory_Variables
.
These variables represent the complete non-retentive (non retain)
section of the shared RAM. The PLC program can access the
individual components (variables) of the shared RAM using full
stops as explained above.
With shared RAM version 8 or higher, there is a retentive (retain)
section of the shared RAM as well as the non-retentive section.
Unlike the non-retentive section, the values of the variables of this
section are retained after switching off the controller. For this, the
global variable
cncRMem
is also inserted.
The global variables
cmpS..., cmeS..., cmcS...,
cmsS..., cmaS...
. See worksheet
Global_Variable
s, groups
PLC_Common
,
CNC_Common
,
CNC_System_x
(x stands for the
number of the CNC sub-system. Such a group exists with system-
specific variables for each sub-system) and
CNC_Axis_y
(y stands
for the number of CNC axes. Such a group exists with axis-specific
variables for each axis).
These variables are provided for the visualisation systems or similar
programs to access the shared RAM. They provide the complete
shared RAM via the OPC interface.
These variables provide the shared RAM in an unstructured form.
Only simple data types (BOOL, DINT, REAL, STRING) and fields of
simple data types are used. This procedure is required as
structured data (like the ones the variables
plcMem
und
cncMem
contain) can not be transferred via the OPC interface.