Siemens SIMATIC NET CP 5613 Manual page 119

Dp base programming interface
Table of Contents

Advertisement

Table continued from previous page
fast_logic
error
DP Base Programming Interface for CP 5613/CP 5614
C79000-G8976-C108-02
Description of the DP Functions, Data, and Error Codes
Pointer to the DP_FAST_LOGIC_S structure with which the
trigger condition can be set.
typedef struct DP_FAST_LOGIC_S
{
DPR_BYTE
DPR_BYTE
DPR_BYTE
DPR_BYTE
DPR_BYTE
DPR_BYTE
DPR_BYTE
DPR_BYTE
} DP_FAST_LOGIC_T;
slave_addr_in_byte specifies the address of the slave
whose inputs are selected for the trigger.
index_in_byte specifies the index of the input byte of the
trigger.
cmp_value_in_byte specifies the comparison value for the
input byte.
With mask_in_byte, you cna mask individula bits in the input
byte so that they are ignored in the comprison. They are
masked by a 1 in the corresponding bit; in other words, if
mask_in_byte == 0x00, all the bits of cmp_value_in_byte
are used in the comparison.
The trigger is triggered when all unmasked bits in the
selected input byte match the bits in cmp_value_in_byte.
slave_addr_out_byte selects the slave whose output byte
will be changed when the trigger condition occurs.
index_out_byte specifies the index of the output byte.
value_out_byte specifies the value to be written to the
output byte.
With mask_out_byte, you cna mask individual bits in the
output byte so that they are not changed if the trigger
condition occurs. They are masked by a 1 in the
corresponding bit; in other words,if mask_out_byte == 0x00,
all bits of value_out_byte are written to the selected output
byte.
Address of a structure provided by the user program of the
type DP_ERROR_T - If an error occurred, the structure
contains details for troubleshooting (see Section 4.4).
slave_addr_in_byte;
index_in_byte;
cmp_value_in_byte;
mask_in_byte;
slave_addr_out_byte;
index_out_byte;
value_out_byte;
mask_out_byte;
// in
// in
// in
// in
// in
// in
// in
// in
119

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic net cp 5614

Table of Contents