Presentation is loading. Please wait.

Presentation is loading. Please wait.

SIMATIC WinAC WinAC Slot T-Kit Version 3.2 Shipment: 12/2001.

Similar presentations


Presentation on theme: "SIMATIC WinAC WinAC Slot T-Kit Version 3.2 Shipment: 12/2001."— Presentation transcript:

1 SIMATIC WinAC WinAC Slot T-Kit Version 3.2 Shipment: 12/2001

2 Technology-Interface WinAC Slot 41x, V3.2 & WinAC Slot T-Kit, V3.2
Output Area 4 KByte Input L FW 17 T POW 5000 L PIW 4096 T FW 16 READS7DWORD(..) WRITES7DWORD(..) 1. 2. 4. 3. Write Read *) Write *) Read Dual Port RAM PC with WinAC Slot 41x CPU 41x-2 PCI STEP 7 User program PC program *) Data format-Conversion (S7-Data format <--> PC-Data format)

3 High-speed Data Access (1) WinAC Slot 41x, V3.2 & WinAC Slot T-Kit
Read & Write // Data Access Helper methods - ReadS7WORD() bool CWinAcReadData::ReadS7DWORD(long byteOffset, BIT32 &value) { BIT16 wh; BIT16 wl; if (!OffsetCheck(byteOffset, sizeof(BIT32))) return FALSE; ReadS7WORD(byteOffset, wh); ReadS7WORD(byteOffset+2, wl); value = ((BIT32) wh) << 16; value += wl; return TRUE; } High-speed data exchange between PC-application and WinAC Slot PLC-program

4 Technology-Interface WinAC Slot 41x, V3.2 & WinAC Slot T-Kit
Data consistency: Max. 4 Byte Data access classes support the following data types: BOOL BYTE, WORD, DWORD (double word) INT (integer), DINT (double integer, 32 Bit) REAL (floating point) S5TIME, TIME, DATE, TIME_OF_DAY CHAR, STRING PC-Side PLC-Side The DPR (Dual-Port RAM)-area includes each 4 KByte Inputs and 4 KByte Outputs CPU PCI: PIW 4096 to 8190 POW 4096 to 8190 CPU PCI PIW to 20478 Restrictions: Only WORD- and DWORD-access on even numbers

5 Technology-Interface Examples: Read & Write (PC-Side)
bool ReadS7DWORD(long byteOffset, BIT32 &value) This method reads a 32-Bit DWORD (double) out of the Dual-Port-RAM (Read-Area) and stores the result as 32-Bit Integer without sign into the Parameter value. Return value: TRUE: successful FALSE: not successful Parameter: long byteOffset: Offset in Byte within Dual-Port-RAM (Read-Area) BIT32 &value: Result; read data bool WriteS7DWORD(long byteOffset, BIT32 &value) This method writes a 32-Bit DWORD (double) into the Dual-Port-RAM (Write-Area) on address byteOffset. Return value: TRUE: successful FALSE: not successful Parameter: long byteOffset: Offset in Byte within Dual-Port-RAM (Write-Area) BIT32 &value: Value; written data

6 WinAC Slot T-Kit How to implement a Technological Application TAP
Development-Station (PC) „Destionation“ = Runtime Station (PC) T-Kit DLL (Library) Header Files Examples Documentation Technological application + T-Kit DLL + PLC User program MS Visual Studio WinAC Slot T-Kit PC-SW PC-Resourcen PC HW

7 WinAC Slot T-Kit Performance - Everage Transfer-Rates (PC-program <--> DPR)
Example: (RI45, PIII) 100 Words READ 265 µsec 100 Words WRITE µsec Improvement against „OPC-Access“: ~ Factor 15 Valuation: „Linear behavior“ through largely independence of transfer rate from processor speed (only PCI-Bus-performance relevant) Common timing according to applications running on PC and of total communication traffic PLC access times analog to CPU operations and cycle times


Download ppt "SIMATIC WinAC WinAC Slot T-Kit Version 3.2 Shipment: 12/2001."

Similar presentations


Ads by Google