Macro Language Programming Environment
Valid for S300, S700
Off Line Edit
The download of the converted file to the S300/700 is done using the Upgrade Utility and choosing the option \Filetype to download: PLC-Program".
On Line Edit
PLIST
- PLIST will list the entire macro program on the terminal
- PLIST 10 will list line 10 of the program
- PLIST 10 20 will display lines 10 to 20 of the program
- PLIST * will insert at the beginning of each line of the listing the prefix “PLINE nn†This is useful if the listing is redirected to a file. The file can immediately loaded into another amplifier. If this option is not used, only the sequential line number will be added at the beginning of each line.
PLINE
PINS
PDEL
PLCRUN / PLCSTOP
Completely delete a Macro Program
The command sequence
UPDATE PLC
deletes the macro program completely. Power cycling of the 24V supply is necessary afterwards. In case a faulty macro program prevents the drive from starting the firmware correctly so that no access is possible you need to press the two buttons at the drive front while powering it up. At the same time an RS232 connection with a terminal program (not terminal window in DriveGUI!) is required.
The drive will now start in bootloader mode, show "-" in the display and the prompt "SRMON>" in the terminal. With the command
xp
the complete macro program can now be deleted. The answer should be similar to the following (addresses can be different):
SRMON> xp
Erase PLC area
start=90030000 size=00020000
SRMON>
Then cycle the 24V supply. The firmware will start again correctly.
Password protection
An existing program can be protected with the command PASSXPLC y. '
"y" is the password with valid values for y: -2147483648...2147483647.
Comamnd and password must be entered and saved combined. Now the commands for view and edit modes (PLIST, PINS, PLINE, PDEL) are locked.
To edit the program, you must unlock the password protection with PASSPLC y. As long as PASSXPLC is not set to "0", the program is protected after the next switch off / on or coldstart. Passwort protection cannot prevent the program from being deleted.
Example:
PASSXPLC 12345
SAVE
COLDSTART
The program is protected now and if you try to view it, the message:
-->PLIST 1 10
ERR (PLIST) NO WRITE ACCESS (PLEASE ENTER PASSWORD)
appears. To view or edit the program you must enter:
PASSPLC 12345