|
|
|
|
Re: How to program x ^ y in Structured Text [message #1743632 is a reply to message #1743588] |
Sat, 17 September 2016 11:55 |
|
Hi,
I just wrote a simple test FB where I used two input ars of type lreal and one outputvar of type lreal and EXPT the two inputs on the output and it worked without issues. Would you have an algorithm or an EXPT line for me that reproduces the issue. Maybe there is a bug in the code generator.
Thanks,
Alois
|
|
|
Re: How to program x ^ y in Structured Text [message #1743704 is a reply to message #1743632] |
Mon, 19 September 2016 06:58 |
Wolfgang Trischnigg Messages: 45 Registered: April 2016 |
Member |
|
|
Hi Alois,
in my case the FB has several inputs, which were used to calculate a formula.
Inputs:
A, B, C - type Float
Output:
D - type Float
This should happen for example:
EXPT( ( (A+B) * C ), 0.8 ) = D
Visual C++ says:
error C2825: "T": Muss eine Klasse oder ein Namespace sein, wenn gefolgt von "::".
4> ..\..\..\src\modules\test.cpp(44): Siehe Verweis auf die Instanziierung der gerade kompilierten Funktions-template "const T EXPT<double>(const T &,const T &)".
4> with
4> [
4> T=double
4> ]
4>\desktop\forte\forte_1.8_m1\src\core\iec61131_functions.h(535): error C2039: 'TValueType': Ist kein Element von '`global namespace''
4>\desktop\forte\forte_1.8_m1\src\core\iec61131_functions.h(535): error C2061: Syntaxfehler: Bezeichner 'TValueType'
[Updated on: Mon, 19 September 2016 07:13] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03005 seconds