The ":" seprates commands on the same line.
The ";" is used to seperate parameters within the same command.
Here is an example.
!BUTTON1 OUT;DESCRIPTION;12;FILENAME
!BUTTON1 IN;WATER ON; 15; MyButton.bmp
The above example is right out of the book but is a useless example that is meant to show only the syntax to be used for the BUTTON command.
!BUTTON1 ;;;Manual.bmp
The above example is my own code. Notice the differences. I do not require a parameter for IN or OUT so I skip that parameter but it still needs the ; to be there.
I also do not need to include a DESCRIPTION for the button so I placed another ; there.
The 12 is a color code and since I didnt need that either, I just placed the ; there.
The file name I needed so that changes with my code.
Am I making sense here? If you were sitting next to me this would take less than 60 seconds for me to show you and you would understand. Typing it out here makes it allot more difficult to show.
The button command requires 4 parameters. Those are:
ON or OFF
A DESCRIPTION which puts text onto the button for the user to read
COLOR which is a number 0-15 or something like that.
FILENAME which tells the interface to find the file name and use that filename as the buttons picture graphic.
Here is another example
!TIMER ON;1000
The TIMER command takes 2 parameters. The first parameter is either ON or OFF. Then a ; is placed there to seperate parameters and the second parameter is the timer interval in milliseconds.
Here is an example of turning on the timer, and setting an output to ON.
!TIMER ON;1000 :#29=1
Here is an example of turning off the timer and turning off the output.
!TIMER OFF : #29=0
Here is an example of turning on the timer again at 1/2 sec interval and also setting variable 5 to the value of HELLO
!TIMER ON;500 :\5=HELLO
I hope this helps..
I know your getting fustrated.. This is a very normal reaction to the camsoft software and it will go away quickly once you get the basics figured out.
Keep asking questions.. I will help you as often as I log on to check the messages..
Murph |