Questions FCI_SCOPY ... String Variable in C Code Icon
Posted: Tue May 13, 2014 12:17 pm
Hi,
i work deep in FC ..
i have many questions:
Where i can read
FC Function for append the right in C Code icon
example
FCI_SCOPY
Where i can read this detailed?
How FC is handle Function like this:
FCI_SCOPY("WOSAMMA",8, FCV_RUDI1,FCVsz_RUDI1);
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
Where i can read the Parameters for this example FCVsz_RUDI1
This example is C Code in FC after i declare in Calculation
the String Variable Rudi1 with Value "WOSAMMA"
the String Variable Rudi2 with Value from Stringvariable Rudi1
In Calculation
Rudi1 = "WOSAMMA"
Rudi2 = Rudi1
why i ask:
i make variable in Variable Manager
i make a C code icon for Testing Variable for later include it over extern File..
If i make Byte Variable this run ok
But if i make String Variable, this work not.
I try to add the original String Variable from variable Manager by drag and drop from Variable Manager to C Code icon window...
same, i get Compiler stopp..
If i "copy" the C Code, that make a Calculation ICON like this
// Calculation
// Calculation:
// Rudi1 = "WOSAMMA"
// Rudi1 = Rudi2
FCI_SCOPY("WOSAMMA",8, FCV_RUDI1,FCVsz_RUDI1);
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
in the C Code icon, the compiler will work.
But i do not know how this function can be make,
i missed the help for "FC Language"..
where i can read this function parameter for a String to string declare i have think this is enough in C Code Icon
FCV_STRING1 = FCV_STRING2
or
FCV_STRING1 = "HALLO";
but this only goes with Byte...
this Standard C Code..
char string[] = "the best things in Live are FC";
does not go.
or
string[0] = 'D';
________________
The follow C Code Icon will go:
_________________
/*
Enter C code below this comment
*/
// Whats wrong to this String declare ?
// FC String Variable to FC String Variable not gone
// FCV_RUDI1 = FCV_RUDI2;
// String Value to FC String Variable not gone
// FCV_RUDI1 = "NOT GO";
// Try for manually ..
// Taken from Calculation
// Calculation:
// Rudi1 = "WOSAMMA"
// Rudi1 = Rudi2
FCI_SCOPY("WOSAMMA",8, FCV_RUDI1,FCVsz_RUDI1);
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
// Byte ( Num Value ) to FC Byte Variable is going
FCV_NUMBYTE1 = 200;
// FC Byte Variable to FC Byte Variable is going
FCV_NUMBYTE1 = FCV_NUMBYTE2;
-----------------------------------------------
the Byte variable is going - but why this not go with String Variable?
In Calculation Icon for the Byte Variable is simple understand the declare...
// Calculation
// Calculation:
// // Rudi1 = "WOSAMMA"
// // Rudi1 = Rudi2
// NumByte1 = NumByte2
FCV_NUMBYTE1 = FCV_NUMBYTE2;
In Calculation icon for the String Variable looks like needs to know more if this the Parameters to need for String Variable = String Variable
// Calculation
// Calculation:
// // Rudi1 = "WOSAMMA"
// Rudi1 = Rudi2
// NumByte1 = NumByte2
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
FCV_NUMBYTE1 = FCV_NUMBYTE2;
.....
ok
Thank you!
Best wishes!
Rudi
PS
Many questions
I know, but i will learn this deep,
if i have answeres, i can work deeper and deeper and can help someone in questions too..
and i can make crazy projekts..
FC is great MM Staff!!
FC has many many many hidden features, the potential of FC is more as 300 Procent undetected ( possitive mean )
I will deeper work next Time with the XML ...
i work deep in FC ..
i have many questions:
Where i can read
FC Function for append the right in C Code icon
example
FCI_SCOPY
Where i can read this detailed?
How FC is handle Function like this:
FCI_SCOPY("WOSAMMA",8, FCV_RUDI1,FCVsz_RUDI1);
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
Where i can read the Parameters for this example FCVsz_RUDI1
This example is C Code in FC after i declare in Calculation
the String Variable Rudi1 with Value "WOSAMMA"
the String Variable Rudi2 with Value from Stringvariable Rudi1
In Calculation
Rudi1 = "WOSAMMA"
Rudi2 = Rudi1
why i ask:
i make variable in Variable Manager
i make a C code icon for Testing Variable for later include it over extern File..
If i make Byte Variable this run ok
But if i make String Variable, this work not.
I try to add the original String Variable from variable Manager by drag and drop from Variable Manager to C Code icon window...
same, i get Compiler stopp..
If i "copy" the C Code, that make a Calculation ICON like this
// Calculation
// Calculation:
// Rudi1 = "WOSAMMA"
// Rudi1 = Rudi2
FCI_SCOPY("WOSAMMA",8, FCV_RUDI1,FCVsz_RUDI1);
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
in the C Code icon, the compiler will work.
But i do not know how this function can be make,
i missed the help for "FC Language"..
where i can read this function parameter for a String to string declare i have think this is enough in C Code Icon
FCV_STRING1 = FCV_STRING2
or
FCV_STRING1 = "HALLO";
but this only goes with Byte...
this Standard C Code..
char string[] = "the best things in Live are FC";
does not go.
or
string[0] = 'D';
________________
The follow C Code Icon will go:
_________________
/*
Enter C code below this comment
*/
// Whats wrong to this String declare ?
// FC String Variable to FC String Variable not gone
// FCV_RUDI1 = FCV_RUDI2;
// String Value to FC String Variable not gone
// FCV_RUDI1 = "NOT GO";
// Try for manually ..
// Taken from Calculation
// Calculation:
// Rudi1 = "WOSAMMA"
// Rudi1 = Rudi2
FCI_SCOPY("WOSAMMA",8, FCV_RUDI1,FCVsz_RUDI1);
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
// Byte ( Num Value ) to FC Byte Variable is going
FCV_NUMBYTE1 = 200;
// FC Byte Variable to FC Byte Variable is going
FCV_NUMBYTE1 = FCV_NUMBYTE2;
-----------------------------------------------
the Byte variable is going - but why this not go with String Variable?
In Calculation Icon for the Byte Variable is simple understand the declare...
// Calculation
// Calculation:
// // Rudi1 = "WOSAMMA"
// // Rudi1 = Rudi2
// NumByte1 = NumByte2
FCV_NUMBYTE1 = FCV_NUMBYTE2;
In Calculation icon for the String Variable looks like needs to know more if this the Parameters to need for String Variable = String Variable
// Calculation
// Calculation:
// // Rudi1 = "WOSAMMA"
// Rudi1 = Rudi2
// NumByte1 = NumByte2
FCI_SCOPY(FCV_RUDI2,FCVsz_RUDI2, FCV_RUDI1,FCVsz_RUDI1);
FCV_NUMBYTE1 = FCV_NUMBYTE2;
.....
ok
Thank you!
Best wishes!
Rudi
PS
Many questions
I know, but i will learn this deep,
if i have answeres, i can work deeper and deeper and can help someone in questions too..
and i can make crazy projekts..
FC is great MM Staff!!
FC has many many many hidden features, the potential of FC is more as 300 Procent undetected ( possitive mean )
I will deeper work next Time with the XML ...