User Manual

Table of contents
Easy Book
Manual, 03/2014, A5E02486774-AF
9
6.3.4 Math made easy with the Calculate instruction ......................................................................... 103
6.3.5 Timers ........................................................................................................................................ 104
6.3.6 Counters ..................................................................................................................................... 109
6.3.7 Pulse-width modulation (PWM) .................................................................................................. 111
6.4 Easy to create data logs ............................................................................................................ 112
6.5 Easy to monitor and test your user program .............................................................................. 114
6.5.1 Watch tables and force tables .................................................................................................... 114
6.5.2 Cross reference to show usage ................................................................................................. 115
6.5.3 Call structure to examine the calling hierarchy .......................................................................... 116
6.5.4 Diagnostic instructions to monitor the hardware ........................................................................ 117
6.5.4.1 Reading the states of the LEDs on the CPU ............................................................................. 117
6.5.4.2 Instructions for reading the diagnostic status of the devices ..................................................... 117
6.6 High-speed counter (HSC) ......................................................................................................... 118
6.6.1 Operation of the high-speed counter ......................................................................................... 119
6.6.2 Configuration of the HSC ........................................................................................................... 125
7 Easy to communicate between devices ............................................................................................... 127
7.1 Creating a network connection .................................................................................................. 128
7.2 Communication options ............................................................................................................. 129
7.3 Number of asynchronous communication connections ............................................................. 131
7.4 PROFINET and PROFIBUS instructions ................................................................................... 132
7.5 PROFINET ................................................................................................................................. 133
7.5.1 Open user communication ......................................................................................................... 133
7.5.1.1 Ad hoc mode .............................................................................................................................. 134
7.5.1.2 Connection IDs for the Open user communication instructions ................................................. 134
7.5.1.3 Parameters for the PROFINET connection ............................................................................... 137
7.5.2 Configuring the Local/Partner connection path .......................................................................... 140
7.6 PROFIBUS ................................................................................................................................. 142
7.6.1 Communications services of the PROFIBUS CMs .................................................................... 144
7.6.2 Reference to the PROFIBUS CM user manuals ........................................................................ 145
7.6.3 Adding the CM 1243-5 (DP master) module and a DP slave .................................................... 145
7.6.4 Assigning PROFIBUS addresses to the CM 1243-5 module and DP slave .............................. 146
7.7 AS-i ............................................................................................................................................ 148
7.7.1 Adding the AS-i master CM 1243-2 and AS-i slave ................................................................... 149
7.7.2 Assigning an AS-i address to an AS-i slave .............................................................................. 150
7.8 S7 communication ..................................................................................................................... 153
7.8.1 GET and PUT instructions ......................................................................................................... 153
7.8.2 Creating an S7 connection ......................................................................................................... 154
7.8.3 GET/PUT connection parameter assignment ............................................................................ 155
7.9 GPRS ......................................................................................................................................... 156
7.9.1 Connection to a GSM network ................................................................................................... 156
7.10 PtP, USS, and Modbus communication protocols ..................................................................... 163
7.10.1 Point-to-point communication .................................................................................................... 163
7.10.2 Using the serial communication interfaces ................................................................................ 163
7.10.3 PtP instructions .......................................................................................................................... 164
7.10.4 USS instructions......................................................................................................................... 165