551 216 01

 

LED channel

 

Registers in LED channel:

RegNo

Identifier

Memory type

Read Out

Type

0

State

RAM Read Write

Binary

Boolean

1

ActualState

RAM Read only

Binary

Boolean

2

EnableDutyCycle

RAM Init EEPROM

Binary

Boolean

3

Intensity

RAM Init EEPROM

Decimal

Byte

4

OnPreset

RAM Init EEPROM

Decimal

Byte

5

PTPreset

RAM Init EEPROM

Decimal

Real

6

 

 

 

 

7

 

 

 

 

8

 

 

 

 

9

 

 

 

 

10

 

 

 

 

11

 

 

 

 

12

 

 

 

 

13

 

 

 

 

14

Guid

PROM Read only

-------

String

15

ChError

RAM Read Write

Binary

Record

 

 

RegNo 0: State

 

 

State:   

Boolean;

 

 

When State is set to True, the LED output will be ON.

After a power-up or a reset of the module, State will be set to False.

 

 

RegNo 1: ActualState

 

 

ActualState: 

Boolean;

 

 

This register holds the actual state of the LED.

 

 

RegNo 2: EnableDutyCycle

 

 

EnableDutyCycle:  

Boolean;

 

 

If the EnableDutyCycle flag is set to True, the Duty-Cycle mode is enabled.

The On time is specified in LED.OnPreset and the total period in LED.PTPreset.

 

Enabling and disabling duty-cycle mode for a LED can be performed without affecting the setting in LED.State. This provides the option of changing the mode for a LED from simple On/Off to duty-cycle mode, and in the case where the duty-cycle mode is disabled again, the LED will return back to the state defined in LED.State.

 

 

RegNo 3: Intensity

 

 

Intensity:   

Byte;

 

 

The LED intensity can be controlled by this register (0-127). Default value: 127.        

The value 0 will turn off the LED and the value 127 will set the LED to illuminate with the highest intensity.

 

 

RegNo 4: OnPreset

 

 

OnPreset:

Byte;

 

 

OnPreset: [%]

This variable holds the On time in % of PTPreset time.

The default value is 50 corresponding to 50 HZ Duty-Cycle.

 

 

RegNo 5: PTPreset

 

 

PTPreset:

Real;

 

 

This variable holds the period time for the LED. Default value: 1.0 second.

The default settings for OnPreset and PTPreset will provide a 50% Duty-Cycle output for the LED with a frequency of 1 Hz.

 

 

RegNo 14: Guid

Each channel type in an interface device consists of a unique Guid.

 

Guid:

String[22];

(*"xxxxxxxxxxxxxxxxxxxxxx"*)

 

 

RegNo 15: ChError

 

Record

 

 

His:

Bit8;

 

 

Act:

Bit8;

 

End;

 

 

 

There are two sets of error bits, actual and historical. The actual error bits reflect the current situation and will automatically follow any change.

The historical error bits reflect past situations and have the job of holding sporadic errors. The historical error bits are set together with the corresponding actual bits. They remain set after a read, so each individual bit must be cleared by setting it to FALSE. Only the bits where the corresponding actual bit is FALSE can be cleared.

The “His data error” bit in the P-NET response is set if any historical bit is TRUE.

The “Act data error” bit in the P-NET response reflects the validity of the data in the response. Overload, electrical error or an error in other registers involved in calculating the result gives “Act data error”.

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0: Program_storage_fault

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1: RAM_storage_fault

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2: InternalReset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3: ExternalReset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4: EEPROM_error_in_State

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5: EEPROM_error_in_ EnableDutyCycle

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6: EEPROM_error_in_Intensity_PTPreset_OnPreset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7: Not Used

 

 

 

 

 

 

 

 

 

 

 

Bit 0

Program_storage_fault is set TRUE if the self-test finds an error in the program memory.

Bit 1

RAM_storage_fault is set TRUE if the self-test finds an error in the data memory (RAM).

Bit 2

InternalReset is set TRUE if a reset is caused by a power failure, or if the power has been disconnected (only a His error).

Bit 3

ExternalReset is set TRUE if a reset is caused by writing 255 to Reset, via P‑NET (only a His error).

 

The following bits are set TRUE if the self-test finds an error in the data memory (EEPROM) for the variable. EEPROM fault is only set at power-up. If the corresponding variable is accessed, Act error in the P-NET response is set.

This error can occur if the power disappears when writing to EEPROM, so a rewrite to the variable could possibly solve the problem.

 

Bit 4

EEPROM_error_in_State

Bit 5

EEPROM_error_in_ EnableDutyCycle

Bit 6

EEPROM_error_in_Intensity_PTPreset_OnPreset

Bit 7

Not used