97BPLC concepts
4.5 Using a memory card
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
99
The overlay types can be addressed directly in the program logic:
LAD
FBD
SCL
IF #AT[1] THEN
...
END_IF;
IF (#DW1_Struct.S1 =
W#16#000C) THEN
...
END_IF;
out1 := #DW1_Struct.S2;
See SCL (Page 145) for syntax for addressing local variables and PLC tags.
Rules
●
Overlaying of tags is only possible in FB and FC blocks with standard access.
●
You can overlay parameters for all block types and all declaration sections.
●
An overlaid parameter can be used like any other block parameter.
●
You cannot overlay parameters of type VARIANT.
●
The size of the overlaying parameter must be less than or equal to the size of the overlaid
parameter.
●
The overlaying variable must be declared immediately after the variable that it overlays
and identified with the keyword "AT".
4.5
Using a memory card
NOTICE
The CPU supports only the pre-formatted SIMATIC memory card (Page 758).
Before you copy any program to the formatted memory card, delete any previously saved
program from the memory card.
Use the memory card either as a transfer card or as a program card. Any program that you
copy to the memory card contains all of the code blocks and data blocks, any technology
objects, and the device configuration. The program does not contain force values.