Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:op10init [2017/03/24 15:14] – created qem103 | en:software:qview:qview_6:qcl_library:op10init [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== OP10Init ====== | ||
+ | |||
+ | **O = **// | ||
+ | |||
+ | **P = **// | ||
+ | |||
+ | The OP10Init function __is part of a collection of functions for programming an output according to the methodology described below__. Other functions that are part of the collection are: | ||
+ | |||
+ | |||
+ | // | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | // | ||
+ | |||
+ | Output programming methodology is summarized in this help. | ||
+ | |||
+ | The " | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | 3 working groups are identified: Hd, dA, An and for each output can be programmed a different range setting. You can also enable the output function within a band, only when the " | ||
+ | Each digit of the " | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | ==== Type of operation ==== | ||
+ | |||
+ | 1 Active\\ | ||
+ | 2 Activate interlocks (resettable)\\ | ||
+ | 3 Disable\\ | ||
+ | 4 Disable interlocks (resettable) | ||
+ | |||
+ | ==== Dependence on headband ==== | ||
+ | |||
+ | 1 Band from Hd\\ | ||
+ | 2 Band from dA\\ | ||
+ | 3 Band from An\\ | ||
+ | 4 Dependence on the initial timer\\ | ||
+ | 5 Depends on timer range associated with the band | ||
+ | |||
+ | The initial timer is triggered at start-up and strength (throughout its duration) corresponding output logic State contrary to planned, then the output will return to work as from setup. | ||
+ | |||
+ | The following spoke outside the range timer membership range and serve to delay the switching output programmable logic. This gives you added security by entering the next range, avoiding oscillations. | ||
+ | |||
+ | === Example 1 === | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | You want to program the output as graph. The comparison to the activation of the Hd band should be enabled after the " | ||
+ | |||
+ | === Example 2 === | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | You want to program the output as graph. The comparison to the activation of the Hd band should be enabled after the " | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **OP10Init (op10arFun)** | ||
+ | |||
+ | Initializes the " | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | |||
+ | **OP10isParOk (OutpProgU1, | ||
+ | |||
+ | Check the programmed data for to program the output and returns a value to be assigned to op10arFun[7]. | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | **OP10Manage ( op10Param1, op10arFun )** | ||
+ | |||
+ | Execute the comparisons and sets the status of the pulse output that can be read by using the " | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | GLOBAL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | IN | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | | - | ARRGBL | ||
+ | |||
+ | **OP10isOutOn ( op10arFun, op10RetSts )** | ||
+ | |||
+ | Returns the status of the programmable output. | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRGBL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | **OP10ResProg ( op10arFun )** | ||
+ | |||
+ | Resets the status of the programmable output. | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRGBL | ||
+ | |||
+ | **OP10SetProg ( op10arFun )** | ||
+ | |||
+ | Sets the status of the programmable output. | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRGBL | ||
+ | |||
+ | **OP10ResRet ( op10arFun )** | ||
+ | |||
+ | Reset the programmable output restraint. | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRGBL | ||
+ | |||
+ | === Example 3 === | ||
+ | |||
+ | <code QCL> | ||
+ | ; Out U1 - Init | ||
+ | OP10Init ( OutpU1 ) | ||
+ | OP10isParOk ( OutpProgU1, LOutpRetSts, | ||
+ | IF LOutpRetSts | ||
+ | OutpU1[7] | ||
+ | ELSE | ||
+ | OutpU1[7] = 0 | ||
+ | ENDIF | ||
+ | |||
+ | MAIN: | ||
+ | |||
+ | ; Out U1 - Function | ||
+ | IF OutpMode EQ 1 | ||
+ | LOutpParam = CmRpmT | ||
+ | OP10Manage ( LOutpParam, OutpU1 ) | ||
+ | OP10isOutOn ( OutpU1, LOutpRetSts ) | ||
+ | out01 = LOutpRetSts | ||
+ | ELSE | ||
+ | OP10ResOut ( OutpU1 ) | ||
+ | out01 = 0 | ||
+ | ENDIF | ||
+ | |||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | |||
+ | END | ||
+ | </ | ||