554 #ifdef FUNCTIONAL_BLOCK_CREATE_DIAGNOSE_OUTPUTS
555 U16 u16_Status = (
U16)0x0000;
556 U16 u16_Counter = (
U16)0x0000;
557 U16 u16_Period = (
U16)0x0000;
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
#define NULL
Definition: Defines.h:388
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
unsigned long U32
Binary 32-Bit unsigned integer datatype defenition.
Definition: Defines.h:203
float F32
IEEE-754 32-Bit single presession floating point numbers datatype defenition.
Definition: Defines.h:324
unsigned short U16
Binary 16-Bit unsigned integer datatype defenition.
Definition: Defines.h:193
Function block base class header file.
Function block output connector class.
Definition: Block_Output_Connector.h:59
Function block base class for device.
Definition: Function_Block_Base.h:96
KG3 digital I/O board (P020.29 / KG3 ENC T1) type 1 class.
Definition: P020_29_KG3_ENC.h:79
TBlock_Input_Connector object_bool_Channel_A_Data
Digital output 1 for channel A.
Definition: P020_29_KG3_ENC.h:379
virtual VOID Send_Information(TProtocol_Base *object_Protocol)
Send information about digital I/O baortd driver over communication link protocol.
Definition: P020_29_KG3_ENC.cpp:182
virtual ~TP020_29_KG3_ENC_T1()
Function block class destructor method.
Definition: P020_29_KG3_ENC.cpp:93
VOID Map(TP020_29_KG3_ENC_Registers *struct_Registers_Base_Address)
Hardware mapping method.
Definition: P020_29_KG3_ENC.cpp:101
TBlock_Input_Connector object_bool_Channel_Z_Data
Digital output for channel Z.
Definition: P020_29_KG3_ENC.h:385
virtual VOID Execute()
Function block execution method.
Definition: P020_29_KG3_ENC.cpp:147
TP020_29_KG3_ENC_T1()
Function block class constructor method.
Definition: P020_29_KG3_ENC.cpp:68
TBlock_Input_Connector object_bool_Channel_B_Data
Digital output for channel B.
Definition: P020_29_KG3_ENC.h:382
U32 Get_Module_ID()
Definition: P020_29_KG3_ENC.cpp:167
volatile TP020_29_KG3_ENC_Registers * struct_Registers
Pointer to the memory area in FPGA address space.
Definition: P020_29_KG3_ENC.h:464
virtual VOID Init()
Function block initialisation method.
Definition: P020_29_KG3_ENC.cpp:116
KG3 digital I/O board (P020.29 / KG3 ENC T2) type 2 class.
Definition: P020_29_KG3_ENC.h:472
F32 f32_Theta_Gain
Internal variable.
Definition: P020_29_KG3_ENC.h:547
F32 f32_Max_Omega_Change_Rate
Maximal omega change rate.
Definition: P020_29_KG3_ENC.h:550
virtual VOID Execute()
Execute method.
Definition: P020_29_KG3_ENC.cpp:308
TP020_29_KG3_ENC_T2()
Constructor method.
Definition: P020_29_KG3_ENC.cpp:229
TBlock_Input_Connector object_f32_Counter_Clock_Frequency
[Hz] Counter clock frequency
Definition: P020_29_KG3_ENC.h:517
U32 u32_Error_Counter
Error counter.
Definition: P020_29_KG3_ENC.h:545
TBlock_Output_Connector object_f32_Theta
[rad] Rotor theta
Definition: P020_29_KG3_ENC.h:527
virtual VOID Init()
Initialisation method.
Definition: P020_29_KG3_ENC.cpp:277
virtual ~TP020_29_KG3_ENC_T2()
Destructor method.
Definition: P020_29_KG3_ENC.cpp:254
TBlock_Output_Connector object_f32_Omega
[rad/s] Rotor speed
Definition: P020_29_KG3_ENC.h:528
TBlock_Output_Connector object_bool_Error
Error flag.
Definition: P020_29_KG3_ENC.h:529
TBlock_Input_Connector object_u32_Pulse
[-] Encoder pulse per revolution
Definition: P020_29_KG3_ENC.h:516
TBlock_Output_Connector object_f32_Counter
Encoder counter.
Definition: P020_29_KG3_ENC.h:525
F32 f32_Omega_Magnitude_Storage
Omega magnitude storage.
Definition: P020_29_KG3_ENC.h:549
BOOL bool_First_Iteration
First iteration flag.
Definition: P020_29_KG3_ENC.h:552
TBlock_Input_Connector object_f32_Max_Omega_Change_Rate
[rad/s] Maximal omega change rate
Definition: P020_29_KG3_ENC.h:519
virtual VOID Send_Information(TProtocol_Base *object_Protocol)
Send information about functional block.
Definition: P020_29_KG3_ENC.cpp:344
volatile TP020_29_KG3_ENC_Registers * struct_Registers
Hardware mapped registers.
Definition: P020_29_KG3_ENC.h:543
F32 f32_Omega_Gain
Internal variable.
Definition: P020_29_KG3_ENC.h:548
U32 Get_Module_ID()
Definition: P020_29_KG3_ENC.cpp:328
VOID Map(TP020_29_KG3_ENC_Registers *struct_Registers_Base_Address)
Definition: P020_29_KG3_ENC.cpp:262
Definition: Protocol_Base.h:57
Register structure for digital I/O access.
Definition: P020_29_KG3_ENC.h:93
U16 u16_Unit_ID_L
0x00 : Module identification low register
Definition: P020_29_KG3_ENC.h:96
U16 u16_Reserve_9
0x09 : Reserved
Definition: P020_29_KG3_ENC.h:259
U16 u16_Reserve_14
0x0E : Reserved
Definition: P020_29_KG3_ENC.h:274
U16 u16_Reserve_7
0x07 : Reserved
Definition: P020_29_KG3_ENC.h:253
U16 u16_Unit_ID_H
0x01 : Module identification high register
Definition: P020_29_KG3_ENC.h:99
U16 u16_Reserve_8
0x08 : Reserved
Definition: P020_29_KG3_ENC.h:256
U16 u16_Reserve_15
0x0F : Reserved
Definition: P020_29_KG3_ENC.h:277
U16 u16_Relay_Data_Write_Register
Offset 0x02, Data write redister.
Definition: P020_29_KG3_ENC.h:153
U16 u16_Reserve_10
0x0A : Reserved
Definition: P020_29_KG3_ENC.h:262
U16 u16_Reserve_12
0x0C : Reserved
Definition: P020_29_KG3_ENC.h:268
U16 u16_Relay_Data_Read_Register
Offset 0x02, Data read redister.
Definition: P020_29_KG3_ENC.h:122
U16 u16_Reserve_13
0x0D : Reserved
Definition: P020_29_KG3_ENC.h:271
U16 u16_Relay_Data_Clear_Register
0x04 : Relay data clear register
Definition: P020_29_KG3_ENC.h:216
U16 u16_Reserve_11
0x0B : Reserved
Definition: P020_29_KG3_ENC.h:265
U16 u16_Relay_Data_Toggle_Register
0x05 : Relay data toggle register
Definition: P020_29_KG3_ENC.h:247
U16 u16_Reserve_6
0x06 : Reserved
Definition: P020_29_KG3_ENC.h:250
U16 u16_Relay_Data_Set_Register
0x03 : Relay data set register
Definition: P020_29_KG3_ENC.h:185
Definition: P020_29_KG3_ENC.h:482
U16 u16_Counter_Latch
Counter latch register.
Definition: P020_29_KG3_ENC.h:487
U16 u16_Unused_0x07
Reserved register.
Definition: P020_29_KG3_ENC.h:492
U16 u16_Counter
Counter register.
Definition: P020_29_KG3_ENC.h:486
U16 u16_Period
Period in FPGA clocks.
Definition: P020_29_KG3_ENC.h:488
U16 u16_Unused_0x06
Reserved register.
Definition: P020_29_KG3_ENC.h:491
U16 u16_Unused_0x05
Reserved register.
Definition: P020_29_KG3_ENC.h:490
U16 u16_Unused_0x04
Reserved register.
Definition: P020_29_KG3_ENC.h:489
U16 u16_Status
Status register.
Definition: P020_29_KG3_ENC.h:485
U16 bool_Channel_A_Direction
Bit 2, Channel 3 direction.
Definition: P020_29_KG3_ENC.h:425
U16 u16_Raw_Data
Raw data.
Definition: P020_29_KG3_ENC.h:412
U16 bool_Channel_A_Output
Bit 1, Channel A data.
Definition: P020_29_KG3_ENC.h:422
U16 bool_Channel_B_Direction
Bit 6, Channel B direction.
Definition: P020_29_KG3_ENC.h:437
U16 bool_Channel_Z_Output
Bit 9, Channel Z data.
Definition: P020_29_KG3_ENC.h:446
U16 bool_Channel_B_Output
Bit 5, Channel B data.
Definition: P020_29_KG3_ENC.h:434
U16 bool_Channel_Z_Direction
Bit 10, Channel Z direction.
Definition: P020_29_KG3_ENC.h:449