Technical data

Table Of Contents
Contents
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
v
25
IEC Timers and IEC Counters 25-3
25.1
Generating a Pulse with SFB 3 "TP" .............................................................. 25-3
25.2
Generating an On Delay with SFB 4 "TON" ................................................... 25-3
25.3
Generating an Off Delay with SFB 5 "TOF".................................................... 25-3
25.4
Counting Up with SFB 0 "CTU" ...................................................................... 25-3
25.5
Counting Down with SFB 1 "CTD".................................................................. 25-3
25.6
Up / Down Count with SFB 2 "CTUD" ............................................................ 25-3
26
IEC Functions 26-3
26.1
Overview......................................................................................................... 26-3
26.2
Technical Data of the IEC Functions.............................................................. 26-3
26.3
Date and Time as Complex Data Types......................................................... 26-3
26.4
Time-of-Day Functions ................................................................................... 26-3
26.5
Comparing DATE_AND_TIME Variables ....................................................... 26-3
26.6
Comparing STRING Variables ....................................................................... 26-3
26.7
Editing Number Values................................................................................... 26-3
26.8
Example in STL .............................................................................................. 26-3
26.9
Example in STL .............................................................................................. 26-3
26.10
Editing STRING Variables .............................................................................. 26-3
26.11
Converting Data Type Formats ...................................................................... 26-3
27
SFBs for Integrated Control 27-3
27.1
Continuous Control with SFB 41/FB 41 "CONT_C" ....................................... 27-3
27.2
Step Control with SFB 42/FB 42 "CONT_S" .................................................. 27-3
27.3
Pulse Generation with SFB 43/FB 43 "PULSEGEN" ..................................... 27-3
27.4
Example of the PULSEGEN Block ................................................................. 27-3
28
SFBs for Compact CPUs 28-3
28.1
Positioning With Analog Output Using SFB 44 "Analog"................................ 28-3
28.2
Positioning with Digital Output Using SFB 46 "DIGITAL"............................... 28-3
28.3
Controlling the Counter with SFB 47 "COUNT".............................................. 28-3
28.4
Controlling the Frequency Measurement with SFB 48 "FREQUENC"........... 28-3
28.5
Controlling Pulse Width Modulation with SFB 49 "PULSE"............................ 28-3
28.6
Sending Data (ASCII, 3964(R)) with SFB 60 "SEND_PTP"........................... 28-3
28.7
Receiving Data (ASCII, 3964(R)) with SFB 61 "RCV_PTP"........................... 28-3
28.8
Deleting the Receive Buffer (ASCII, 3964(R)) with SFB 62 "RES_RCVB" .... 28-3
28.9
Sending Data (512(R)) with SFB 63 "SEND_RK" .......................................... 28-3
28.10
Fetching Data (RK 512) with SFB 64 "FETCH RK"........................................ 28-3
28.11
Receiving and Providing Data (RK 512) with SFB 65 "SERVE_RK" ............. 28-3
28.12
Additional Error Information of the SFBs 60 to 65.......................................... 28-3
29
SFCs for H CPUs 29-3
29.1
Controlling Operation in H Systems with SFC 90 "H_CTRL"......................... 29-3
30
Integrated Functions (for CPUs with integrated I/Os) 30-3
30.1
SFB 29 (HS_COUNT)..................................................................................... 30-3
30.2
SFB 30 (FREQ_MES)..................................................................................... 30-3
30.3
SFB 38 (HSC_A_B)........................................................................................ 30-3
30.4
SFB 39 (POS)................................................................................................. 30-3