ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
|
Downloads |
Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook. |
#1
|
|||
|
|||
I wonder the meaning of MACRO
i wonder the meaning of covermode and MACRO
treenode current = ownerobject(c); //current conveyor object treenode item = parnode(1); //flowitem that is covering the photoeye int photoeye = parval(2); //photoeye number (row in the table) int covermode = parval(3); //mode 1 = green to yellow, mode 2 = yellow to red #define GreenToYellow 1 #define YellowToRed 2 #define either covermode |
#2
|
||||
|
||||
Hello kim,
Flexscript follows c syntax rules,so #define preprocessor directive can also be used in Flexscript. #define directive allows the definition of macros within your source code.These macro definitions allow constant values to be declared for use throughout the code. Macro definitions are not variables and cannot be changed by your program code like variables. You normally use this syntax when creating constants that represent numbers, strings or expressions.See global macros in the manual for more information |
The Following 5 Users Say Thank You to sagar bolisetti For This Useful Post: | ||
RalfGruber (05-21-2015) |
Thread | Thread Starter | Forum | Replies | Last Post |
What's the meaning of 'non-passing' of yellow tape in networknode? | syseo | Q&A | 1 | 12-22-2012 12:23 PM |
what is the meaning of the "debounce time" of the photoeye? | qin tian | Q&A | 2 | 09-28-2008 07:44 PM |