AMX Netlinx Studio Mini Templates
Technical Support Guide
Table of Contents
Sample Code for Mini Programs
The "Mini" templates are useful for writing small debug programs for troubleshooting. There is no need to move to different sections, delete unused modem initialization and comments, etc., just write code as necessary.
Axcess Mini: An empty DEFINE_START section is the smallest program that will make the Master Axlink LED blink. The DEFINE_START section is not necessary to make the LED blink if the code is in a DEFINE_PROGRAM section.
NetLinx Mini: NetLinx programs must have a PROGRAM_NAME to compile. For NetLinx syntax highlighting and Build/Compile (instead of Build/Compile As/NetLinx) to work correctly, these three lines must be in the comments of the program:
- (*{{PS_SOURCE_INFO(PROGRAM STATS) *)
- (* ORPHAN_FILE_PLATFORM: 1 *)
- (*}}PS_SOURCE_INFO *)
They do not have to be on adjacent lines, but they must be in this order.
To Use the Templates
Copy the .AXS files to '...Studio\Templates' folder. Then they will show up as an option in the Template field of the "New Source Code File" window in NetLinx Studio.
!!rev1 05/11/02: Added (* FILE_LAST_MODIFIED_ON: <date> AT: <time> *) to PS_SOURCE_INFO.
Added line to PS_SOURCE_INFO to separate FLMO and OFP from revision notes that are always added when opening the template from the New Source Code Window, i.e., as a template.
Added PS_SOURCE_INFO section to Axcess Mini so it won't use the default PS_SOURCE_INFO.
Added <CR><LF> to end of Axcess Mini so Axcess compiler can "see" the last line.
Downloads:
Table of Contents