boardGetProfile (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


boardGetProfile returns information about the the facilities available on the RTCU device.

 

Input:

index : SINT (0..18)

This identifies which parameter is being requested

Possible values are:

0

- Number of indexes present in profile (currently 18).

1

- Number of digital inputs.

2

- Number of digital outputs.

3

- Number of analog inputs.

4

- Number of analog outputs.

5

- Number of dip-switches.

6

- Number of user-LEDs.

7

- LCD mounted?

8

- RTC mounted?

9

- GSM mounted?

10

- Programmable?

11

- Built-in GPS receiver?

12

- TCP/IP enabled?

13

- Number of serial ports (1/2/3).

14

- On-board temperature sensor present?

15

- Extended FLASH persistent memory present?

16

- Is the device a 'i'-revision?

17

- Execution architecture. 1=X32 / 2=NX32 / 3=NX32L

18

- Number of flex inputs.

 

Returns: DINT

The requested parameter

In case of TRUE/FALSE conditions, 0 (zero) will indicate FALSE and 1 (one) will indicate TRUE.

 

Declaration:

FUNCTION boardGetProfile : DINT;
VAR_INPUT
  index : SINT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  num_do : DINT;
END_VAR;
 
BEGIN
  ...
  // Ask how many digital outputs are present
  num_do := boardGetProfile(index:=2);
  ...
END;
 
END_PROGRAM;