| Dettagli del download |
|
This demo describes the flexibility of C++ code to work on the IO's which are configured at the IO-Task. This approach allows providing a compiled C++ module to act more flexible on different numbers of IOs connected at the IO-Task. A use case would be to check cyclically analogue input channels where the number of channels might differ on different projects. The sample contains
The C++ code accesses the values via a data image, which is initialized within the "SAFEOP to OP" (SO) transition. Within the "CycleUpdate" method, which is executed cyclically, each input variable is checked on its value by calling the helper method "CheckValue". If it’s less than 0 the corresponding output variable is set to 1; if it is greater than 0, it is set to 2 and if it’s 0 output equals 3. After activating the configuration you can access and set the variables via the Solution Explorer. |
|
|||||||||||||||||||||||||||||||||

Gli esempi presenti su questo sito sono stati liberamente inviati dagli utenti di automationforum.it, è stato espressamente specificato loro di inviare solo esempi FREE. Automationforum.it non si ritiene responsabile dell'eventuale presenza di esempi rilasciati sotto licenza commerciale, Automationforum.it invita tutti coloro che individuano esempi rilasciati sotto licenza commerciale presenti in questa raccolta a segnalarlo dall'apposito