‑19‑
4 Programming Examples
The following is an example where the input voltage of channel 0 of the GL20‑4AD
module is assigned to the corresponding variable, and AC802 is used as the master
control module.
1. Add GL20‑4AD module.
2. In the Channels Config interface, check Enable access for Access‑0, and set the
parameters as per needs.
3. Define variables AD_CH0, AD_CH1, AD_CH2 and AD_CH3 with the ST programming
language as shown in the figure below.