Types
Python equivalent for snap7 specific types.
- class snap7.type.S7CpInfo[source]
- S7 Cp class for Communication Information :
MaxPduLength => Size of the maximum PDU length in bytes
MaxConnections => Max connection allowed to S7-CPU or Server
MaxMpiRate => MPI rate (MPI use is deprecated)
MaxBusRate => Profibus rate
Every data packet exchanged with a PLC must fit within the PDU size, whose is fixed from 240 up to 960 bytes.
- class snap7.type.S7CpuInfo[source]
- S7CpuInfo class for handling CPU with :
ModuleTypeName => Model of S7-CPU
SerialNumber => SN of the S7-CPU
ASName => Family Class of the S7-CPU
Copyright => Siemens Copyright
ModuleName => TIA project name or for other S7-CPU, same as ModuleTypeName
- class snap7.type.S7Protection[source]
See §33.19 of System Software for S7-300/400 System and Standard Functions
- class snap7.type.S7SZL[source]
See §33.1 of System Software for S7-300/400 System and Standard Functions
- class snap7.type.S7SZLHeader[source]
LengthDR: Length of a data record of the partial list in bytes NDR: Number of data records contained in the partial list
- class snap7.type.SrvArea(*values)[source]
The snap7 server area types
NOTE: these values are DIFFERENT from the normal area IDs.
- snap7.type.buffer_type
alias of
c_ubyte_Array_65536