Create command delete command – Rockwell Automation 1775-S5_SR5,D17756.5.5 User Manual PLC-3 FAMILY I/0 User Manual

Page 105

Advertising
background image

Programming DH and DH+

Message Procedures

Chapter 6

6-14

The CREATE command generates a symbolic address and assigns it to a
logical address. To create a local symbolic address, use the CREATE
command by itself (the default modifier /LOCAL is optional). To create a
global symbolic address, use the modifier /GLOBAL after the CREATE
command. A procedure executing in any context can use any global
symbolic address, whereas local symbolic addresses are recognized only
by procedures executing in the same context. In either case, the symbol
has meaning only at the station where it is created.

You can abbreviate the modifier /GLOBAL to /G and /LOCAL to /L.
For example:

C/G @TOTAL $E0.0.0.7

The scanner creates the global system symbol TOTAL to represent the
logical address E0.0.0.7.

Do not confuse this CREATE command for generating symbolic addresses
with the CREATE command for allocating file space in PLC-3
programming.

Use the DELETE command to:

delete message procedures from memory
delete symbolic addresses
delete interprocedural user symbols

Using the DELETE command on a:

Deletes the:

procedure name

name and erases the named procedure from

memory.

symbolic address or user symbol

symbol, but the data stored under that symbol

remains intact.

To delete a local symbol, a local procedure or a procedural user symbol,
use the DELETE command by itself (the modifier /LOCAL is optional).
To delete a global symbol, a global procedure, or an interprocedural user
symbol, use the modifier /GLOBAL after the DELETE command.

You can abbreviate the modifier /GLOBAL to /G and /LOCAL to /L.
For example:

D/G @PARTS_PG

The scanner deletes the global procedure PARTS_PG from
PLC-3 memory.

CREATE Command

DELETE Command

Advertising