background image

Parameter

Declaration

Data type

Description

PROTOCOL

IN

BYTE

1=ASCII, 2=STX/ETX, 3=3964R

PARAMETER

IN

ANY

Pointer to protocol-parameters

BAUDRATE

IN

BYTE

Number of baudrate

CHARLEN

IN

BYTE

0=5bit, 1=6bit, 2=7bit, 3=8bit

PARITY

IN

BYTE

0=Non, 1=Odd, 2=Even

STOPBITS

IN

BYTE

1=1bit, 2=1.5bit, 3=2bit

FLOWCONTROL IN

BYTE

1 (fix)

RETVAL

OUT

WORD

Return value (0 = OK)

All time settings for timeouts must be set as hexadecimal value. Find

the Hex value by multiply the wanted time in seconds with the bau-

drate.
Example:
Wanted time 8ms at a baudrate of 19200baud
Calculation: 19200bit/s x 0.008s ≈ 154bit → (9Ah)
Hex value is 9Ah.

Here you fix the protocol to be used.
You may choose between:
1: ASCII
2: STX/ETX
3: 3964R
4: USS Master
5: Modbus RTU Master
6: Modbus ASCII Master

At ASCII protocol, this parameter is ignored.
At STX/ETX, 3964R, USS and Modbus you fix here a DB that con-

tains the communication parameters and has the following structure

for the according protocols:

Data block at STX/ETX

DBB0: STX1

BYTE

(1. Start-ID in hexadecimal)

DBB1: STX2

BYTE

(2. Start-ID in hexadecimal)

DBB2: ETX1

BYTE

(1. End-ID in hexadecimal)

DBB3: ETX2

BYTE

(2. End-ID in hexadecimal)

DBW4: TIMEOUT

WORD

(max. delay time between 2

telegrams)

Parameters

PROTOCOL

PARAMETER (as DB)

VIPA System 300S CPU

Deployment PtP communication

Parametrization> FC/SFC 216 - SER_CFG

HB140 | CPU | 315-2AG13 | GB | Rev. 14-40

 

94

Содержание 315-2AG13

Страница 1: ...CPU 315 2AG13 Manual HB140 CPU 315 2AG13 GB Rev 14 40 VIPA System 300S CPU...

Страница 2: ...315 2AG13_000_CPU 315SB DPM 1 GB 2014 VIPA GmbH Ohmstr 4 91074 Herzogenaurach Telephone 49 9132 744 0 Fax 49 9132 744 1864 email info vipa com Internet www vipa com...

Страница 3: ...5 Battery backup for clock and RAM 28 4 2 6 Operating mode switch 29 4 2 7 LEDs 29 4 3 Technical data 31 5 Deployment CPU 315 2AG13 38 5 1 Assembly 38 5 2 Start up behavior 38 5 3 Addressing 39 5 3 1...

Страница 4: ...on 96 6 5 1 Overview 96 6 5 2 FC SFC 217 SER_SND 97 6 5 3 FC SFC 218 SER_RCV 102 6 6 Protocols and procedures 104 6 7 Modbus Function codes 108 6 8 Modbus Example communication 113 7 Deployment PROFIB...

Страница 5: ...O modules 139 9 4 TIA Portal Hardware configuration Ethernet PG OP channel 140 9 5 TIA Portal Setting VIPA specific CPU parameters 143 9 6 TIA Portal Include VIPA library 145 9 7 TIA Portal Project t...

Страница 6: ...y effort has been made to ensure that the information contained in this document was complete and accurate at the time of publishing Nevertheless the authors retain the right to modify the information...

Страница 7: ...4 91074 Herzogenaurach Germany Telefax 49 9132 744 1204 EMail documentation vipa de Contact your local VIPA Customer Service Organization representa tive if you encounter problems with the product or...

Страница 8: ...mation and useful tips 1 3 Safety information The system is constructed and produced for n communication and process control n industrial applications n operation within the environmental conditions s...

Страница 9: ...out when the system has been disconnected from power Installation and hardware modifications only by prop erly trained personnel The national rules and regulations of the respective country must be s...

Страница 10: ...tion to the applicable rules and regulations for handling the respective equipment can prevent failures of electrostatic sensitive modules Modules must be shipped in the original packing material When...

Страница 11: ...has the lowest priority 2 2 2 Applications The program that is present in every CPU is divided as follows n System routine n User application The system routine organizes all those functions and proce...

Страница 12: ...form of bytes words or double words You may always access the current data block by means of operands You may access the following types of data n individual Bits n Bytes n Words n Double words 2 3 CP...

Страница 13: ...grated memory Information about the capacity of the memory may be found at the front of the CPU The memory is divided into the following parts n Load memory 2Mbyte n Code memory 50 of the work memory...

Страница 14: ...visualization software via these connections n Wiring by means of spring pressure connections CageClamps at the front connector n Core cross section 0 08 2 5mm2 n Total isolation of the wiring at modu...

Страница 15: ...0V test voltage AC 500V Protective measures against short circuit Environmental conditions to EN 61131 2 Climatic Storage transport EN 60068 2 14 25 70 C Operation Horizontal installation EN 61131 2 0...

Страница 16: ...000MHz 10V m 80 AM 1kHz 1 4GHz 2 0GHz 3V m 80 AM 1kHz 2GHz 2 7GHz 1V m 80 AM 1kHz EN 61000 4 6 HF conducted 150kHz 80MHz 10V 80 AM 1kHz EN 61000 4 4 Burst degree of severity 3 EN 61000 4 5 Surge insta...

Страница 17: ...Installation dimensions 2tier width WxHxD in mm 40 x 125 x 120 Dimensions Basic enclosure Dimensions Installation dimensions VIPA System 300S CPU Assembly and installation guidelines Installation dime...

Страница 18: ...40 10 390 1AE80 482 466 8 3 390 1AF30 530 500 15 390 1AJ30 830 800 15 390 9BC00 2000 Drillings only left 15 Unit pack 10 pieces Measures in mm For the communication between the modules the System 300S...

Страница 19: ...ly by screwing 7 Take a backplane bus connector and click it at the CPU from the backside like shown in the picture 8 Stick the CPU to the profile rail right from the power supply and pull it to the p...

Страница 20: ...on the left side shows the cabling step by step from top view 1 For cabling you push the locking vertical to the inside with a suiting screwdriver and hold the screwdriver in this position 2 Insert th...

Страница 21: ...top res from top to bottom if the cables should be led out at the top 6 Bolt also the connection screws of not cabled screw clamps 7 Fix the cable binder for the cable bundle 8 Push the release key at...

Страница 22: ...ble bundle and the front connector 7 Fix the cable binder for the cable bundle 8 Bolt the fixing screw of the front connector 9 Now the front connector is electrically connected with your module 10 Cl...

Страница 23: ...n installing your components Install a central connection between the ground and the pro tected earth conductor system Connect all inactive metal extensive and impedance low Please try not to use alum...

Страница 24: ...ou should always lay the isolation of cables on both sides Only by means of the both sided connection of the isolation you achieve high quality interference suppression in the higher frequency area On...

Страница 25: ...le n Status LEDs for operating state and diagnosis n Real time clock battery buffered n Ethernet PG OP interface integrated n RS485 interface configurable for PROFIBUS DP master respec tively n I O ad...

Страница 26: ...4 Operating mode switch CPU 5 Slot for DC 24V power supply 6 Twisted pair interface for Ethernet PG OP channel 7 MPI interface 8 PROFIBUS DP PtP interface Components 5 8 are under the front flap 4 2 2...

Страница 27: ...ress parameters have to be assigned to this 9pin SubD jack The CPU has a PROFIBUS PtP interface with a fix pinout After an overall reset the interface is deactivated By appropriate configura tion the...

Страница 28: ...card into the slot until it snaps in leaded by a spring mechanism This ensures contacting n By sliding down the sliding mechanism a just installed memory card can be protected against drop out n To r...

Страница 29: ...switch the CPU between STOP and RUN n During the transition from STOP to RUN the operating mode START UP is driven by the CPU n Placing the switch to MRES Memory Reset you request an overall reset wit...

Страница 30: ...Blinking with 10Hz Error during Firmware update on off blinking 2Hz BB not relevant X LEDs Ethernet PG OP channel L A S The green L A LED Link Activity indicates the physical connection of the Ethern...

Страница 31: ...PU on off blinking 2Hz BB Slave operation RN RUN ER ERR DE IF Meaning green red green red Slave has no project respectively PtP is active BB Slave is without master BB BB Alternate flashing at configu...

Страница 32: ...dules LAN 8 Command processing times Bit instructions min 0 01 s Word instruction min 0 01 s Double integer arithmetic min 0 01 s Floating point arithmetic min 0 06 s Timers Counters and their retenti...

Страница 33: ...Clock buffered period min 6 w Type of buffering Vanadium Rechargeable Lithium Batterie Load time for 50 buffering period 20 h Load time for 100 buffering period 48 h Accuracy max deviation per day 10...

Страница 34: ...ommunication Number of GD circuits max 8 Size of GD packets max 54 Byte S7 basic communication S7 basic communication user data per job 76 Byte S7 communication S7 communication as server S7 communica...

Страница 35: ...n 19 2 kbit s Transmission speed max 12 Mbit s Functionality PROFIBUS master PG OP channel Routing S7 basic communication S7 communication S7 communication as server S7 communication as client Activat...

Страница 36: ...er memory outputs max 244 Byte Address areas max 32 User data per address area max 32 Byte Point to point communication PtP communication Interface isolated RS232 interface RS422 interface RS485 inter...

Страница 37: ...max 4 Productive connections Housing Material PPE Mounting Rail System 300 Mechanical data Dimensions WxHxD 40 mm x 125 mm x 120 mm Weight 290 g Environmental conditions Operating temperature 0 C to 6...

Страница 38: ...transferred from the MMC into the work memory of the CPU If no MMC is plugged the CPU transfers permanent stored protected blocks into the work memory if available n Depending on the position of the o...

Страница 39: ...en a cycle has been completed Maximally 8 modules per row may be configured by the CPU 315 2AG13 For the project engineering of more than 8 modules you may use line interface connections For this you...

Страница 40: ...6 slot 1 256 The following sample shows the functionality of the automatic address allocation 5 4 Hardware configuration CPU The configuration of the CPU takes place at the Siemens hardware configurat...

Страница 41: ...0 0AB0 V2 6 4 The integrated PROFIBUS DP master jack X3 is to be config ured and connected via the sub module X2 DP 5 5 Hardware configuration I O modules After the hardware configuration place the Sy...

Страница 42: ...after an overall reset the Ethernet PG OP channel does not have any IP address For online access to the CPU via Ethernet PG OP channel valid IP address parameters have to be assigned to this by means...

Страница 43: ...ssignment the Ethernet PG OP channel may be reached online by these address data The value remains as long as it is reassigned it is overwritten by a hardware configuration or an factory reset is exec...

Страница 44: ...r of the CPU 5 8 2 Parameters CPU The CPU does not evaluate each parameter which may be set at the hardware configuration The following parameters are supported by the CPU at this time n Short descrip...

Страница 45: ...tion n Update OB1 process image cyclically This parameter is not rele vant n Scan cycle monitoring time Here the scan cycle monitoring time in milliseconds may be set If the scan cycle time exceeds th...

Страница 46: ...the clock is when the operating mode switch is moved from STOP to RUN n Phase offset Enter the delay time in ms for current execution for the watch dog interrupt This should be performed if several wa...

Страница 47: ...agnostics A diagnostics address for PROFIBUS DP is to be preset here In the case of an error the CPU is informed via this address n Operating mode Here the operating mode of the PROFIBUS part may be p...

Страница 48: ...of the SPEEDBUS GSD the VIPA specific parameters may be set during hardware configuration Here the following param eters may be accessed n Function RS485 X3 PtP Synchronization between DP master and C...

Страница 49: ...ectory The SPEEDBUS GSD is stored in the directory VIPA_System_300S 5 Start the hardware configurator from Siemens 6 Close every project 7 Select Options Install new GSD file 8 Navigate to the directo...

Страница 50: ...arameters The following parameters may be accessed by means of the proper ties dialog of the VIPA CPU 5 9 2 1 Function RS485 X3 Using this parameter the RS485 interface may be switched to PtP communic...

Страница 51: ...ROFIBUS DP SyncInOut mode CPU and DP master system are waiting on each other and form thereby a cycle Here the whole cycle is the sum of the longest DP master cycle and CPU cycle By this synchronizati...

Страница 52: ...token time for the PROFIBUS results The token time defines the duration until the token reaches the DP master again Per default this time is supervised Due to this monitoring disturbances on the bus...

Страница 53: ...ia MPI PROFIBUS n Transfer via Ethernet n Transfer via MMC 5 10 1 Transfer via MPI PROFIBUS For transfer via MPI PROFIBUS there is the following interface n X2 MPI interface n X3 PROFIBUS interface Th...

Страница 54: ...nu Options Set PG PC interface 4 Select in the according list the PC Adapter MPI if appropriate you have to add it first then click on Properties 5 Set in the register MPI the transfer parameters of y...

Страница 55: ...additionally to select the option Test commissioning routing 5 10 2 Transfer via Ethernet For transfer via Ethernet the CPU has the following interface n X4 Ethernet PG OP channel So that you may acce...

Страница 56: ...nking of the MC LED of the CPU marks the active transfer Please regard that your user memory serves for enough space other wise your user program is not completely loaded and the SF LED gets on When t...

Страница 57: ...pkg SERIALNUMBER 17601 Order no firmware vers package serial no SUPPORTDATA PRODUCT V3420 HARDWARE V0111 5679G V10 HX000026 100 Bx000227 V6420 Ax000086 V1200 Ax000056 V0000 fx000007 wld V1120 Informa...

Страница 58: ...max maximal Standard Bus Standard Bus Modules at the standard bus BaudRate Read Mode1 BaudRate Write Mode1 Information for support Line 1 ModuleType 94F9 IM36x IM interface if exists Rack 0 Slot 4 Rac...

Страница 59: ...puts are inhibited n RUN LED blinks as soon as the OB 100 is operated and for at least 3s even if the start up time is shorter or the CPU gets to STOP due to an error This indicates the start up n STO...

Страница 60: ...tored 6 Now you may execute the program code step by step via Debug Execute Next Statement or run the program until the next breakpoint via Debug Resume 7 Delete all breakpoints with the option Debug...

Страница 61: ...s are put at disposal STOP RUN res PowerON general First the PII is deleted then OB 100 is called After the execution of the OB the BASP is reset and the cycle starts with Delete PIO Read PII OB 1 dec...

Страница 62: ...e the CPU in STOP by the menu command PLC Operating mode n Overall reset You may request the overall reset by means of the menu command PLC Clean Reset In the dialog window you may place your CPU in S...

Страница 63: ...firmware version is different to the existing firmware version this is indicated by blinking of the LEDs and the firmware may be installed by an update request The latest firmware versions are to be...

Страница 64: ...e executing a firmware update After the firmware update you should execute a Set back to factory set tings Chapter 5 15 Reset to factory setting on page 65 1 Switch the operating mode switch of your C...

Страница 65: ...witch the CPU to STOP 2 Push the operating mode switch down to position MRES for 30s Here the STOP LED flashes After a few seconds the stop LED changes to static light Now the STOP LED changes between...

Страница 66: ...to factory setting or an empty PROTECT WLD is loaded The CPU checks if a MCC memory extension card is put If exists the memory extension is enabled otherwise a memory expansion which was activated bef...

Страница 67: ...er at Module Information Memory CAUTION Please regard that the MCC must remain plugged when you ve executed the memory expansion at the CPU Oth erwise the CPU switches to STOP after 72 hours The MCC c...

Страница 68: ...protect OBs FBs and FCs When back reading the protected blocks into the PG exclusively the block header are loaded The block code that is to be protected remains in the CPU and cannot be read Create a...

Страница 69: ...onsists of a command sequence to be stored as vipa_cmd mmc in the root directory of the MMC The file has to be started by CMD_START as 1 command fol lowed by the desired commands no other text and mus...

Страница 70: ...shown in the following The corre sponding diagnostics entry is put in parenthesizes Example 1 CMD_START Marks the start of the command sequence 0xE801 LOAD_PROJECT proj wld Execute an overall reset an...

Страница 71: ...dditional specific entries in form of event IDs The current content of the diagnostics buffer is stored at the memory card by means of the CMD DIAGBUF Every register of the module information is suppo...

Страница 72: ...fit into periphery area 0xE008 Internal error Please contact the VIPA Hotline 0xE009 Error on accessing the standard backplane bus 0xE010 There is a undefined module at the backplane bus ZInfo2 Slot Z...

Страница 73: ...rame format error 4 Wrong SSL request SSL ID not valid 5 Wrong SSL request SSL SubID not valid 6 Wrong SSL request SSL Index not valid 7 Wrong value 8 Wrong RetVal 9 Wrong SAP 10 Wrong connection type...

Страница 74: ...ed The interface acts fur ther as MPI interface 0xE403 The PROFIBUS DP slave functionality is disabled The interface acts further as MPI interface 0xE500 Memory management Deleted block without corres...

Страница 75: ...Error while reading CMD file memory card error 0xE901 Check sum error 0xEA00 Internal error Please contact the VIPA Hotline 0xEA01 Internal error Please contact the VIPA Hotline 0xEA02 SBUS Internal...

Страница 76: ...a width 0xEA15 Internal error Please contact the VIPA Hotline 0xEA18 SBUS Error at mapping of the master periphery ZInfo2 Slot of the master 0xEA19 Internal error Please contact the VIPA Hotline 0xEA2...

Страница 77: ...PROFINET I O controller ZInfo2 Recognized ID at the configured slot 0xEA53 Error PROFINET configuration There are too many PROFINET IO devices configured ZInfo1 Number of configured devices ZInfo2 Sl...

Страница 78: ...tain an IP address in a different way is not supported for the IP address of the controller 0xEA65 Internal error Please contact the VIPA Hotline 0xEA66 PROFINET IO controller Error in communication s...

Страница 79: ...IPA Hotline 0xEA6A PROFINET IO controller Service error in communication stack PK Rackslot OBNo ServiceIdentifier DatId 0 ZInfo1 ServiceError Code ZInfo2 ServiceError Detail ZInfo3 StackError Error Ad...

Страница 80: ...ZInfo1 Device ID ZInfo2 ZInfo3 0xEA6F PROFINET IO controller PN module mismatch PK Rackslot OBNo PLC Mode DatId 0 ZInfo1 Device ID ZInfo2 ZInfo3 0xEA97 Storage error SBUS service channel ZInfo3 Slot...

Страница 81: ...rs which occurred 0xEAB0 Link mode not valid OBNo Current PLC mode ZInfo1 Diagnostics address master controller Zinfo2 Current LinkMode 0x01 10Mbit full duplex 0x02 100Mbit half duplex 0x03 100Mbit fu...

Страница 82: ...uration of a periphery address ZInfo1 Periphery address ZInfo2 Slot 0xEC10 EtherCAT Restoration bus with its slaves OB start Info Local data StartEvent and Eventclass 0xEC10 DatID 0xXXYY XX 0x54 with...

Страница 83: ...YY 0x01 Station available process data ZInfo1 0xXXYY XX OldState YY NewState ZInfo2 Diagnostics of the Station ZInfo3 AlStatusCode 0xEC30 EtherCAT Topology OK OB start Info Local data StartEvent and...

Страница 84: ...address YY 0x00 Station not available YY 0x01 Station available process data ZInfo1 0xXXYY XX OldState YY NewState ZInfo2 Diagnostics address of the master ZInfo3 Number of stations which are not in...

Страница 85: ...ss 0xED30 ZInfo2 Diagnostics address of the master 0xED31 EtherCAT Interrupt Queue Overflow OB start Info Local data StartEvent and Eventclass 0xED31 ZInfo2 Diagnostics address of the master 0xED40 0x...

Страница 86: ...byte DatID 1 2 Subindex ZInfo1 Index ZInfo2 SDO error code high word ZInfo3 SDO error code low word 0xED70 EtherCAT Diagnostics buffer CP Twice HotConnect group found PK 0 OB PLC Mode DatID 1 2 0 ZInf...

Страница 87: ...ing data for the status display and instead of the required data it only provides the PG with data containing the value 0 For this reason jumps or time and process alarms can result in the value displ...

Страница 88: ...rocess image of binary and digital operands is modified inde pendently of the operating mode of the CPU When the operating mode is RUN the program is executed with the modified process variable When t...

Страница 89: ...time using the FC SFC 216 SER_CFG For this you have to store the parameters in a DB for all protocols except ASCII The FCs SFCs are controlling the communication Send takes place via FC SFC 217 SER_SN...

Страница 90: ...additional call of the FC SFC 217 SER_SND causes a return value in RetVal that includes among others recent information about the acknowledgement of the partner n Further on for USS and Modbus after...

Страница 91: ...bus 3 Download the file Cx000023_Vxxx 4 Extract the file to your work directory The SPEEDBUS GSD is stored in the directory VIPA_System_300S 5 Start the hardware configurator from Siemens 6 Close ever...

Страница 92: ...U 315 2AG13 the properties dialog of the CPU may be opened As soon as the project is transferred together with the PLC user pro gram to the CPU the parameters will be taken after start up The hardware...

Страница 93: ...6 4 1 FC SFC 216 SER_CFG The parametrization happens during runtime deploying the FC SFC 216 SER_CFG You have to store the parameters for STX ETX 3964R USS and Modbus in a DB RS485 Connection Descrip...

Страница 94: ...0 008s 154bit 9Ah Hex value is 9Ah Here you fix the protocol to be used You may choose between 1 ASCII 2 STX ETX 3 3964R 4 USS Master 5 Modbus RTU Master 6 Modbus ASCII Master At ASCII protocol this p...

Страница 95: ...00baud 05h 1800baud 06h 2400baud 07h 4800baud 08h 7200baud 09h 9600baud 0Ah 14400baud 0Bh 19200baud 0Ch 38400baud 0Dh 57600baud 0Eh 115200baud Number of data bits where a character is mapped to 0 5bit...

Страница 96: ...5 Error at PARITY 6 Error at STOPBITS 7 Error at FLOWCONTROL 809xh Error in FC SFC parameter value x where x 1 Error at PROTOCOL 3 Error at BAUDRATE 4 Error at CHARLENGTH 5 Error at PARITY 6 Error at...

Страница 97: ...E 124 Word where the number of the sent Bytes is stored At ASCII if data were sent by means of FC SFC 217 faster to the serial interface than the interface sends the length of data to send could diffe...

Страница 98: ...24byte 9002h Data too short 0byte 9004h Character not allowed 3964R Value Description 2000h Send ready without error 80FFh NAK received error in communication 80FEh Data transfer without acknowledgeme...

Страница 99: ...ve respond 2001h Send ready negative slave respond 8080h Receive buffer overflow no space for receipt 8090h Acknowledgement delay time exceeded 80F0h Wrong checksum in respond 80FDh Length of respond...

Страница 100: ...trates the structure of programming a send command for the different protocols 3964R Principles of program ming VIPA System 300S CPU Deployment PtP communication Communication FC SFC 217 SER_SND HB140...

Страница 101: ...USS Modbus ASCII STX ETX VIPA System 300S CPU Deployment PtP communication Communication FC SFC 217 SER_SND HB140 CPU 315 2AG13 GB Rev 14 40 101...

Страница 102: ...TE 124 Word where the number of received Bytes is stored At STX ETX and 3964R the length of the received user data or 0 is entered At ASCII the number of read characters is entered This value may be d...

Страница 103: ...Return values of the block Error code Description 0000h no error 1000h Receive buffer too small data loss 8x24h Error at FC SFC Parameter x with x 1 Error at DATAPTR 2 Error at DATALEN 3 Error at ERR...

Страница 104: ...ta that is in the buffer at request time in a parameterized receive data block If a tele gram is spread over various cycles the data is overwritten There is no reception acknowledgement The communicat...

Страница 105: ...1h to 1Fh are permissible Characters above 1Fh are ignored In the user data characters below 20h are not allowed and may cause errors The number of Start and End IDs may be different 1 Start 2 End res...

Страница 106: ...tems The USS protocol enables a time cyclic telegram traffic by presetting a fix telegram length The following features characterize the USS protocol n Multi point connection n Master slave access pro...

Страница 107: ...e master can only communicate with one slave at a time n After a request from the master this waits for a preset delay time for an answer of the slave During the delay time communication with other sl...

Страница 108: ...ster n Bit inputs are referred to as Input Status and bit outputs as Coil Status n word inputs are referred to as Input Register and word outputs as Holding Register Normally the access at Modbus happ...

Страница 109: ...Write 1 bit Write 1 bit to master output area 0x 06h Write 1 word Write 1 word to master output area 4x 0Fh Write n bits Write n bits to master output area 0x 10h Write n words Write n words to maste...

Страница 110: ...aster input area 1x Command telegram Slave address Function code Address 1 bit Number of bits Check sum CRC LRC 1byte 1byte 1word 1word 1word Respond telegram Slave address Function code Number of rea...

Страница 111: ...5words Code 05h Write 1 bit to master output area 0x A status change is via Status bit with following values Status bit 0000h Bit 0 Status bit FF00h Bit 1 Command telegram Slave address Function code...

Страница 112: ...se regard that the number of bits has additionally to be set in byte Command telegram Slave address Func tion code Address 1 bit Number of bits Number of bytes Data 1 byte Data 2 byte Check sum CRC LR...

Страница 113: ...Siemens SIMATIC Manager and possibilities for the project transfer n Modbus cable connection 1 Assemble a Modbus system consisting of a CPU 31xS as Modbus master and a CPU 21xSER 1 as Modbus slave an...

Страница 114: ...and error evaluation n OB 1 Call SFC 217 SER_SND for data transport from the slave CPU to the output buffer Call SFC 218 SER_RECV for the data transport from the input buffer to the CPU Allow an accor...

Страница 115: ...VIPA System 300S CPU Deployment PtP communication Modbus Example communication HB140 CPU 315 2AG13 GB Rev 14 40 115...

Страница 116: ...s data areas into the address range of the CPU Project engineering in the CPU is not required Via the PROFIBUS DP master PROFIBUS DP slaves may be cou pled to the CPU The DP master communicates with t...

Страница 117: ...e catalog If necessary you have to update the hardware catalog with Options Update Catalog For project engineering a thorough knowledge of the Siemens SIMATIC Manager and the Siemens hardware configur...

Страница 118: ...ng of your PROFIBUS DP master is fin ished Please link up now your DP slaves with periphery to your DP master 1 For the project engineering of PROFIBUS DP slaves you search the concerning PROFIBUS DP...

Страница 119: ...on as DP slave 3 Add your modules according to the real hardware assembly 4 Open the properties dialog of the DP interface of the CPU by means of a double click at MPI DP 5 Set Interface type to PROFI...

Страница 120: ...the master system and select your slave system to be cou pled 9 Open the Configuration at Object properties of your slave system 10 Via double click to the according configuration line you assign the...

Страница 121: ...ifferences Though it is less irritable from influences than a voltage or a current inter face You are able to configure the network as well linear as in a tree structure n Max 32 participants per segm...

Страница 122: ...or that purpose the bus cable must be feed through Via the order number 972 0DP10 you may order the bus connector EasyConn This is a bus con nector with switchable terminating resistor and integrated...

Страница 123: ...o activate a terminating resistor 1 1 last bus participant 2 further participants CAUTION The terminating resistor is only effective if the connector is installed at a bus participant and the bus part...

Страница 124: ...DP slave project If the master has received valid configuration data he switches to Data Exchange with the DP Slaves This is indicated by the DE LED After PowerON respectively a receipt of a new hard...

Страница 125: ...is cyclically attended with an output telegram containing recent output data n The input data of the DP slaves were cyclically transferred to the input area of the CPU Master behavior at CPU RUN VIPA...

Страница 126: ...is part of this manual n Windows XP SP3 n Windows Vista n Windows 7 32 and 64 bit n Windows 8 32 and 64 bit You may receive a demo version from VIPA Without any activation with the demo version the C...

Страница 127: ...n the following fields n Email Addr n Your Name n Serial number The serial number may be found on a label at the CD case of WinPLC7 4 If your computer is connected to Internet you may online request t...

Страница 128: ...r rights for your PC n WinPLC7 is installed and activated as Profi version n One SPEED7 CPU and one digital output module are installed and cabled n The Ethernet PG OP channel of the CPU is connected...

Страница 129: ...ery dialog window with OK 8 Select if not already done Target External TCP IP direct 9 Open with Online Send configuration to the CPU a dialog with the same name 10 Click to Accessible nodes Please re...

Страница 130: ...inPLC7 The PLC program is to be created in the FC 1 1 In Project content choose New FC 2 Enter FC1 as block and confirm with OK The editor for FC 1 is called Creating parameters In the upper part of t...

Страница 131: ...created as FBD function block diagram Here change to the FBD view by clicking at FBD 2 Click to the input field designated as empty The available operations may be added to your project by drag drop...

Страница 132: ...e operand Network1 is finished now Adding a new network For further comparisons the operations CMP I at Q 124 1 and CMP I at Q 124 2 are necessary Create a network for both opera tions with the follow...

Страница 133: ...structure The FC 1 is to be called from the cycle OB 1 1 Go to OB 1 which was automatically created with starting the project 2 Go to Project content or to Solution and open the OB 1 by a double click...

Страница 134: ...l blocks into the PLC 3 Switch the CPU to RUN by clicking at RUN in the CPU Control Center of Edit project The displayed state changes from STOP to RUN 4 To view the process image select View Display...

Страница 135: ...is graphically displayed 2 Double click to the output module open its properties dialog and enter the Module address 124 3 Switch the operating mode switch to RUN by means of the mouse Your program is...

Страница 136: ...nsfer your project to your CPU with PLC Send all blocks 8 Switch your CPU to RUN state 9 Open the OB 1 by double click 10 Change the value of one variable save the OB 1 and transfer it to the CPU Acco...

Страница 137: ...ttings used With the menu Project Exit in the Project view you may exit the TIA Portal Here there is the possibility to save changes of your project before 9 1 2 Work environment of the TIA Portal Bas...

Страница 138: ...iguration CPU With the Siemens TIA Portal the CPU from VIPA is to be configured as CPU 317 2DP 6ES7 317 2AJ10 0AB0 V2 6 from Siemens 1 Start the Siemens TIA Portal 2 Create a new project in the Portal...

Страница 139: ...Properties dialog Here you can make your parameter settings on page 44 9 3 TIA Portal Hardware configuration I O modules After the hardware configuration of the CPU place the System 300 modules at th...

Страница 140: ...e control your CPU n The Ethernet PG OP channel also gives you access to the internal web page that contains information about firmware version con nected I O devices current cycle times etc n At the...

Страница 141: ...ee at Online access and choose here by a doubleclick your network card which is connected to the Ethernet PG OP channel 4 To get the stations and their MAC address use the Accessible device The MAC ad...

Страница 142: ...343 1EX11 0XE0 always as last module after the really plugged modules 5 Open the Property dialog by clicking on the CP 343 1EX11 and enter for the CP at Properties at Ethernet address the IP address...

Страница 143: ...tract the file to your work directory The SPEEDBUS GSD is stored in the directory VIPA_System_300S 5 Start the hardware configurator from Siemens 6 Close every project 7 Select Options Install new GSD...

Страница 144: ...342 5 Thus the VIPA components can be displayed you have to deactivate the Filter of the hardware catalog 1 Switch in the Project area to Network view 2 Connect the slave system VIPA_SPEEDbus After i...

Страница 145: ...ibrary n The VIPA specific blocks may be found at www vipa com as downloadable library at the service area with Downloads VIPA LIB n The library is available as packed zip file Fx000020_V n If you wan...

Страница 146: ...sfer via MPI are not supported This is only possible with the programming cable from Sie mens 1 Establish a connection to the CPU via MPI with an appropriate programming cable Information may be found...

Страница 147: ...project as transfer channel The memory card serves as external storage medium There may be stored several projects and sub directories on a memory card Please regard that your current project is store...

Страница 148: ...ct is to be loaded automatically from the memory card with PowerON you have to rename this to on the memory card to AUTOLOAD WLD After accessing the memory card you can find a diagnostics entry in the...

Отзывы: