Sorry, but I broke the simulator in i_TRILOGI 7.03 Build 08.
I was working with the PidCompute function and got real different results between hardware and simulation.
This is the entire program:
PIDDef 1, 1.0, 0.333, 0.0, 0.0 ' chn, limit, P, I, D ...
A# = PIDCompute(1, 1.0) ' A# will be 0.333 with simulator. 0.0 with hardware
[/font][/color]
Target hardware Fx-CPU F90.7
I think that the problem is with the PLC firmware and not the simulator. The issue may be setting the limits argument to PIDDef to a value of 1. I was expecting the values returned from PIDCompute in the range of -1.000 to +1.000 but only got values of 0.0!
If I program everything using scaled arguments limit = 1000, P = 333.0 the the output from PID compute is 333. I suspect that something in the "new" PIDCompute function was not completely recoded for floating point calculations.
Is there a never version of firmware for the Fx processors?
Gary D.