Code Description
0x85xy System error on the bus coupler
0x8xyy General error information
Ä
Chap. 4.2 ‘General and Specific Error Information RET_VAL’ page 66
12.1.4 FC 302 - FM_GET_FREQUENCY - Calculate frequency consistent
With the FC 302 FM_GET_FREQUENCY, you can calculate the frequency of the input
signals of both channels of the System SLIO frequency measurement module. By this
function internally SFC 14 - DPRD_DAT for consistent reading of user data is called.
Here, the error messages of the function block are returned by ERROR.
Parameters
Parameter Declaration Data type Memory block Description
LADDR_IN /
HW_ID
INPUT WORD /
HW_IO
I, Q, M, D, L
n LADDR_IN
– Logical base input address of the
frequency measurement module.
– When used in CPUs from VIPA or
in S7-300 CPUs from Siemens.
n HW_ID
– HW identifier to address the fre-
quency measurement module.
– When used in S7-1500 CPUs
from Siemens.
DONE OUTPUT BOOL I, Q, M, D, L Ready signal
(TRUE = OK)
ERROR OUTPUT WORD I, Q, M, D, L Return value
(0 = OK)
FREQUENCY_CH0 OUTPUT DINT I, Q, M, D, L Channel 0: Frequency
FREQUENCY_CH1 OUTPUT DINT I, Q, M, D, L Channel 1: Frequency
Peripheral address:
n This parameter is available in CPUs from VIPA or in S7-300 CPUs from Siemens.
n Configured base address of the input area of the System SLIO frequency measure-
ment module, which is to be read from. The address is hexadecimal.
n (Example: Address 100: LADDR_IN: = W#16#64)
HW identifier:
n This parameter is only available in S7-1500 CPUs of Siemens.
n Enter at HW_ID the HW identifier, with which your module can be addressed accord-
ingly.
Ä
Chap. 4.1 ‘HW identifier - HW_ID’ page 66
Ready signal of the function
n TRUE: Function was finished without error.
n FALSE: Function is not active respectively there is an error.
Description
LADDR_IN
HW_ID
DONE
VIPA SPEED7
Device Specific
Frequency Measurement > FC 302 - FM_GET_FREQUENCY - Calculate frequency consistent
HB00 | OPL_SP7 | Operation list | en | 18-30 251