Types

Python equivalent for snap7 specific types.

class snap7.type.Area(*values)[source]

The snap7 area types

snap7.type.Areas

alias of Area

class snap7.type.Block(*values)[source]

The snap7 block type

class snap7.type.BlocksList[source]

The snap7 block list structure

class snap7.type.Parameter(*values)[source]

The snap7 parameter 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.S7OrderCode[source]
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.S7SZLList[source]
class snap7.type.SrvArea(*values)[source]

The snap7 server area types

NOTE: these values are DIFFERENT from the normal area IDs.

class snap7.type.SrvEvent[source]

The snap7 server event structure

class snap7.type.TS7BlockInfo[source]
class snap7.type.WordLen(*values)[source]

The snap7 word length types

snap7.type.buffer_type

alias of c_ubyte_Array_65536