The USC701 has four memories CH1, CH2, P1 and P2 (M0 to M3) that contain input measurements, these measurements are floating point numbers. The output devices O1 (mA, V, PWM, Frequency), RLY1 and RLY2 can be controlled from M0 to M9 (memory's). The values in M0 to M9 must be floating point numbers to control the output devices correctly. There are two problems that occur when using floating-point maths in custom applications:
The equation editor has commands to branch on the condition of P1 and P2 making it possible to implement different processing based on the condition of the input. By setting the equation update time to a known value this same technique can be used for counting and period measurement functions with resolution and speed limitations. When using the user equation at the maximum update speed of 5mS care
must be taken to ensure the equation can be processed within that time.
Obviously floating-point division and multiplication are out of the question
while one or two floating-point addition and subtractions are possible. If using a field bus card or logging results with the COA703 the values in M4 to M9 do require the send memory to occur. For applications running at up date times faster than 40mS then extra branching should be added to send values say once every eighth time or 40mS as shown in the following example. The "Integer Maths Branching Demonstration" features:
|