12 Device Specific
The block library can be found for download in the ‘Service/Support’ area of
www.vipa.com at ‘Downloads è VIPA Lib’ as ‘Block library Device Specific -
SW90LS0MA’ . The library is available as packed zip file. As soon as you want to use
these blocks you have to import them into your project.
Ä
Chap. 5 ‘Include VIPA library’
page 69
12.1 Frequency Measurement
12.1.1 FC 300 ... 303 - Frequency measurement SLIO consistent
The following VIPA specific functions are used to control the System SLIO frequency
measurement modules, which are connected via PROFIBUS, PROFINET or EtherCAT.
The usage with EtherCAT is only possible at an EtherCAT CPU from VIPA. By this func-
tions SFC 14 - DPRD_DAT respectively SFC 15 - DPWR_DAT for consistent read
respectively write access to the data are internally called. Error messages of these blocks
are reported by the parameter ERROR.
Function Symbol Comment
FC 300 FM_SET_CONTROL Function to control the frequency measurement with integrated
consistent access.
FC 301 FM_GET_PERIOD Function to calculate the period duration with integrated consistent
access.
FC 302 FM_GET_FREQUENCY Function to calculate the frequency with integrated consistent
access.
FC 303 FM_GET_SPEED Function to calculate the rotational speed with integrated consistent
access.
12.1.2 FC 300 - FM_SET_CONTROL - Control frequency measurement consistent
The System SLIO Frequency measurement module is controlled by the FC 300
FM_SET_CONTROL. By this function the SFC 15 - DPWR_DAT for consistent write
access of data is called. Here error messages of the block are reported by ERROR.
Parameters
Parameter Declaration Data type Memory block Description
ENABLE_FM INPUT BOOL I, Q, M, D, L Enable frequency measurement
LADDR_OUT /
HW_ID
INPUT WORD /
HW_IO
I, Q, M, D, L
n LADDR_OUT
– Logical base output 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.
PRESET_CH0 INPUT DINT I, Q, M, D, L Channel 0: Measurement period
Block library "Device Spe-
cific"
Overview
Description
VIPA SPEED7
Device Specific
Frequency Measurement > FC 300 - FM_SET_CONTROL - Control frequency measurement consistent
HB00 | OPL_SP7 | Operation list | en | 18-30 246