3.1 Direct input and output signals

The inputs and outputs of the MonarcoDrv driver can be accessed as shown in Fig. 3.1.


PIC


Figure 3.1: Example of input and output flags of the MonarcoDrv driver

One block of the From type allowing the user to read one input has the Goto tag set to MNR__DI1, while the other has this tag set to MNR__DI2. The number in the flag corresponds with the terminal pinout. The block of Goto type allowing the user to set (write) one output has the Goto tag) set to MNR__DO3, the other output is accessed via the MNR__DO4 flag. The blocks always have the MNR prefix right at the beginning of the tag followed by two _ characters (underscore).


PIC PIC

Figure 3.2: Terminal pinout for Monarco HAT.

Similarly for other pins we can use e.g. the flags:

In general, the link to a particular signal consists of the driver name MNR, two underscores __, signal reference, signal number and an optional symbol defining the mode of the input. The terminal numbering on Monarco HAT is shown in Fig. 3.2.

All the input and output flags for the Raspberry Pi GPIO pins are prepared by default in the folder
C:\Program Files (x86)\REX Controls\REX <_version>_\Examples\MonarcoHAT_examples\00_IO_Flags.