Hi
consider i am using a calculation block in which i am equating a variable called SPEED = 127. Then I have a macro which calls a subroutine which is in some other C-Code block. I want to transfer this value of SPEED to W register. How can i do that. Thanks. (Please note i am using Flowcode V2).
flowcode variable and W register
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: flowcode variable and W register
Hello Electrobot
In C code you can call Flowcode variables by capitalizing the name and adding the prefix FCV_.
For example Flowcode variable count becomes C variable FCV_COUNT.
If you are using assembler to transfer the C variable then you will need a further _ prefix so the variable name becomes _FCV_COUNT in assembler.
In C code you can call Flowcode variables by capitalizing the name and adding the prefix FCV_.
For example Flowcode variable count becomes C variable FCV_COUNT.
If you are using assembler to transfer the C variable then you will need a further _ prefix so the variable name becomes _FCV_COUNT in assembler.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel