CONFIG_SAFETY_FUNCTION
This is a structure information to set the safety function, and consists of the following fields. It is implemented as a union, allowing two different views of the same memory region:
Bitfield view (two 4-bit workspaces per function)
Raw byte array view (1 byte per function)
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
Refer to the Definition of Below Struct |
|
34 |
|
|
Raw 1-byte stop function value per item
|
Total size: 34 bytes
Defined in: DRFS.h
typedef union _CONFIG_SAFETY_FUNCTION
{
struct {
unsigned char _iStdWorkSpace : 4; /* Standalone Workspace */
unsigned char _iColWorkSpace : 4; /* Collaborative Workspace */
} _tStopCode[SAFETY_FUNC_LAST];
unsigned char _iStopCode[SAFETY_FUNC_LAST];
} CONFIG_SAFETY_FUNCTION, *LPCONFIG_SAFETY_FUNCTION;
Note
This union allows reading or writing either by bitfield or byte view.
_tStopCodeuses 17 entries (SF05–SF17), each containing two 4-bit workspace codes._iStopCodeprovides direct 1-byte access for all 17 safety functions.