How to use HSCMAIN and HSCGETCAPTUREDVALUE function blocks in SoMachine using M238 Controller.
Refer to attached SoMachine example to set up a Main counter for M238 Controller using HSCMAIN and HSCGETCAPTUREDVALUE function blocks.
The input0(%I0) is the pulse signal and the input 3 (%I3) is used to capture the current value of the counter on the falling edge.
The "front" input is used to preset the counter.
The input0(%I0) is the pulse signal and the input 3 (%I3) is used to capture the current value of the counter on the falling edge.
The "front" input is used to preset the counter.