ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Flexsim Student Forum
Downloads

Flexsim Student Forum Forum for discussion for Flexsim Students using the Flexsim Textbook.

  #1  
Old 05-20-2015
Kim Junghoon
Guest
 
Posts: n/a
Downloads: 99
Uploads: 0
Default 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  
Old 05-21-2015
sagar bolisetti's Avatar
sagar bolisetti sagar bolisetti is offline
Flexsim User
 
Join Date: Aug 2013
Location: Hyderabad,India
Posts: 160
Downloads: 145
Uploads: 0
Thanks: 124
Thanked 99 Times in 63 Posts
Rep Power: 150
sagar bolisetti is a jewel in the roughsagar bolisetti is a jewel in the roughsagar bolisetti is a jewel in the roughsagar bolisetti is a jewel in the rough
Default

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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.