SIMATIC WinAC

advertisement
SIMATIC WinAC
WinAC Slot T-Kit
Version 3.2
Shipment:
Product Marketing SIMATIC WinAC
A&D AS SM 4 12/01 N° 1
12/2001
Version: 2001-12-03
Technology-Interface
WinAC Slot 41x, V3.2 & WinAC Slot T-Kit, V3.2
STEP 7 User program
PC program
PC with WinAC Slot 41x
CPU 41x-2 PCI
Dual Port RAM
L PIW 4096
T FW 16
1.
Write
4 KByte
4.
Input
Area
Read
2.
READS7DWORD(..)
Read *)
3.
WRITES7DWORD(..)
Write
*)
A&D AS SM 4 12/01 N° 2
L FW 17
T POW 5000
Output
Area
4 KByte
*) Data format-Conversion (S7-Data format <--> PC-Data format)
Product Marketing SIMATIC WinAC
Version: 2001-12-03
High-speed Data Access (1)
WinAC Slot 41x, V3.2 & WinAC Slot T-Kit
// 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;
A&D AS SM 4 12/01 N° 3
return TRUE;
}
High-speed data exchange between PC-application and WinAC Slot PLC-program
Product Marketing SIMATIC WinAC
Version: 2001-12-03
Technology-Interface
WinAC Slot 41x, V3.2 & WinAC Slot T-Kit
 Data consistency: Max. 4 Byte
 Data access classes support the
following data types:
PLC-Side
 The DPR (Dual-Port RAM)-area
includes each 4 KByte Inputs and 4
KByte Outputs
 BOOL
CPU 412-2 PCI:

BYTE, WORD, DWORD
(double word)
 PIW 4096 to 8190
INT (integer), DINT (double
integer, 32 Bit)
CPU 416-2 PCI

REAL (floating point)

 PIW 16384 to 20478
S5TIME, TIME, DATE,
TIME_OF_DAY


CHAR, STRING
Product Marketing SIMATIC WinAC
 POW 4096 to 8190
 PIW 16384 to 20478
Restrictions: Only WORDand DWORD-access on even
numbers
Version: 2001-12-03
A&D AS SM 4 12/01 N° 4
PC-Side
bool ReadS7DWORD(long
byteOffset, BIT32 &value)
bool WriteS7DWORD(long
byteOffset, BIT32 &value)
 This method reads a 32-Bit DWORD
 This method writes a 32-Bit DWORD
(double) out of the Dual-Port-RAM (ReadArea) and stores the result as 32-Bit Integer
without sign into the Parameter value.
(double) into the Dual-Port-RAM (Write-Area)
on address byteOffset.
 Return 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
 TRUE: successful
 FALSE: not successful
 Parameter:
 long byteOffset: Offset in Byte
within Dual-Port-RAM (Write-Area)
 BIT32 &value: Value; written data
Product Marketing SIMATIC WinAC
Version: 2001-12-03
A&D AS SM 4 12/01 N° 5
Technology-Interface
Examples: Read & Write (PC-Side)
WinAC Slot T-Kit
How to implement a Technological Application TAP
„Destionation“ = Runtime Station (PC)
Development-Station (PC)
T-Kit DLL (Library)
Header Files
Examples
Documentation
Technological application
+ T-Kit DLL
+ PLC User program
MS Visual Studio
PC-SW
PC-Resourcen
A&D AS SM 4 12/01 N° 6
WinAC Slot T-Kit
PC HW
Product Marketing SIMATIC WinAC
Version: 2001-12-03
WinAC Slot T-Kit
Performance - Everage Transfer-Rates
(PC-program <--> DPR)
 Example: (RI45, PIII)
 100 Words
READ
265 µsec
 100 Words
WRITE
66 µsec
 Improvement against „OPC-Access“: ~ Factor 15
 Valuation:
 Common timing according to applications running on PC and of
total communication traffic
 PLC access times analog to CPU operations and cycle times
Product Marketing SIMATIC WinAC
Version: 2001-12-03
A&D AS SM 4 12/01 N° 7
 „Linear behavior“ through largely independence of transfer rate
from processor speed (only PCI-Bus-performance relevant)
Download