EasyManua.ls Logo

Siemens S7-1200 - Page 12

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Table of contents
S7-1200 Programmable controller
12 System Manual, 03/2014, A5E02486680-AG
8.2.4.8 FIND (Find characters in a character string) instruction ........................................................... 313
8.3 Distributed I/O (PROFINET, PROFIBUS, or AS-i) .................................................................... 314
8.3.1 Distributed I/O Instructions ........................................................................................................ 314
8.3.2 RDREC and WRREC (Read/write data record) instructions .................................................... 315
8.3.3 RALRM (Receive interrupt) instruction ..................................................................................... 318
8.3.4 STATUS parameter for RDREC, WRREC, and RALRM .......................................................... 322
8.3.5 DPRD_DAT and DPWR_DAT (Read/write consistent data for DP slaves) instructions ........... 326
8.3.6 DPNRM_DG (Read diagnostic data from a DP slave) instruction ............................................ 328
8.4 Interrupts ................................................................................................................................... 331
8.4.1 ATTACH and DETACH (Attach/detach an OB and an interrupt event) instructions................. 331
8.4.2 Cyclic interrupts ......................................................................................................................... 334
8.4.2.1 SET_CINT (Set cyclic interrupt parameters) instruction ........................................................... 334
8.4.2.2 QRY_CINT (Query cyclic interrupt parameters) instruction ...................................................... 336
8.4.3 Time of day interrupts ............................................................................................................... 337
8.4.3.1 SET_TINTL (Set time of day interrupt) ...................................................................................... 337
8.4.3.2 CAN_TINT (Cancel time of day interrupt) ................................................................................. 339
8.4.3.3 ACT_TINT (Activate time of day interrupt) ................................................................................ 339
8.4.3.4 QRY_TINT (Query status of time of day interrupt) .................................................................... 340
8.4.4 Time delay interrupts ................................................................................................................. 342
8.4.5 DIS_AIRT and EN_AIRT (Delay/enable execution of higher priority interrupts and
asynchronous error events) instructions ................................................................................... 344
8.5 Diagnostics (PROFINET or PROFIBUS) .................................................................................. 345
8.5.1 Diagnostic instructions .............................................................................................................. 345
8.5.2 Diagnostic events for distributed I/O ......................................................................................... 345
8.5.3 LED (Read LED status) instruction ........................................................................................... 346
8.5.4 DeviceStates instruction ............................................................................................................ 347
8.5.4.1 DeviceStates example configurations ....................................................................................... 349
8.5.5 ModuleStates instruction ........................................................................................................... 353
8.5.5.1 ModuleStates example configurations ...................................................................................... 354
8.5.6 GET_DIAG (Read diagnostic information) instruction .............................................................. 358
8.6 Pulse ......................................................................................................................................... 364
8.6.1 CTRL_PWM (Pulse width modulation) instruction .................................................................... 364
8.6.2 Operation of the pulse outputs .................................................................................................. 365
8.6.3 Configuring a pulse channel for PWM ...................................................................................... 367
8.7 Recipes and Data logs .............................................................................................................. 369
8.7.1 Recipes ..................................................................................................................................... 369
8.7.1.1 Recipe overview ........................................................................................................................ 369
8.7.1.2 Recipe DB example .................................................................................................................. 370
8.7.1.3 Program instructions that transfer recipe data .......................................................................... 374
8.7.1.4 Recipe example program .......................................................................................................... 378
8.7.2 Data logs ................................................................................................................................... 380
8.7.2.1 Data log record structure ........................................................................................................... 381
8.7.2.2 Program instructions that control data logs ............................................................................... 382
8.7.2.3 Working with data logs .............................................................................................................. 392
8.7.2.4 Limit to the size of data log files ................................................................................................ 393
8.7.2.5 Data log example program ........................................................................................................ 396
8.8 Data block control ..................................................................................................................... 401
8.8.1 READ_DBL and WRIT_DBL (Read/write a data block in load memory) instructions ............... 401
8.9 Address handling ...................................................................................................................... 404

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals