S7 300/400/1200/1500

  • Name: Siemens
  • Version: 2.2.2.0
  • Protocol: Proprietary
  • Interface: TCP/IP
  • Runtime: .NET 4.8 (Windows)
  • Configuration:
    • Devices / Protocols



Overview


Communication Driver Information

Driver name

Siemens

Assembly Name

T.ProtocolDriver.Siemens

Assembly Version

2.2.2.0

Available for Linux

False

Devices supported 

S7 300/400/1200/1500

Third-party libraries

AGL4DotNET.dll, AGLink40.dll and AGLink40_x64.dll.

Manufacturer

Siemens

Protocol

Proprietary over TCP/IP

PC Requirements

Ethernet port

The TwinCAT communication driver is supported only in Windows Solutions.


Channel Configuration

Protocol Options

<none>


Node Configuration

Station Configuration

Station syntax: <IP  Address> ; <Rack>; <Slot>;<S7 Family>

  • <IP Address>: IP address of the slave device in the Siemens network
  •  <Rack>: Rack of the device
  •  <Slot>: Slot of the device 
  •  <S7 Family>: Model of the device. The options are:

300/400: Support for PLC Siemens S7-300 and S7-400 Series

1200: Support for PLC Siemens S7-1200 and S7-1500 Series



Points Configuration

Address

The syntax for the Siemens communication points is: <Type>:<Format><Address>.< Bit or String Length >

For DataBlock type: DB<DB Group>:<Format><Address>.<Bit or String Length>

Where:

  • <Type>  is the register type. Valid values are: 
    • M=Flags
    • T=Timers
    • C=Counters
    • I=Inputs
    • Q=Outputs
    • DB=Data Blocks.
  • <DB Group> is the group number of the configured Data Block type.
  • <Address> is the device address.
  • <Format>  is the format to treat the value from or to the device. Valid values are:
    • B=Byte
    • W=Word
    • DW=Dword
    • F=Float
    • ST=String
  • <Bit or String Length> is the bit number. This parameter is optional. If you use the String type, it represents the String length.

The address is a single concatenated string with this structure: <Block><DBNumber><DataType><Address>.<BitOrStringLength>. Examples:

  • MW0 — Flag (Merker) word at address 0
  • IB0 — Input byte at address 0
  • QB4 — Output byte at address 4
  • DB1DW0 — Data Block 1, DWord at address 0
  • DB5DBB10 — Data Block 5, Byte at address 10
  • DB1DBST0.50 — Data Block 1, String at address 0, length 50
  • DB1DBW0.3 — Data Block 1, Word at address 0, bit 3
  • Block prefixes: M (Flag/Merker), T (Timer), C (Counter), I (Input), Q (Output), DB (Data Block)
  • Data types: B (Byte→Char), W (Word→Short), DW (DWord→Integer), F (Float→Single), ST (String→ASCII), .DBB (DB Byte), .DBW (DB Word), .DBDW (DB DWord), .DBF (DB Float), .DBSTR/.DBST (DB String)


Error Code Reference

HexDecimal (signed)Description
0x000000000No error
0x000000011No error, job still in process
0xFFF00000-1048576Function not implemented
0xFFF00001-1048575Parameter error when calling function
0xFFF00002-1048574Invalid device number
0xFFF00003-1048573Invalid PLC number
0xFFF00004-1048572Invalid parameter type
0xFFF00005-1048571Insufficient memory
0xFFF00006-1048570Device already opened
0xFFF00007-1048569Device not opened
0xFFF00008-1048568Job already removed
0xFFF00009-1048567Invalid job number
0xFFF0000A-1048566Function not supported
0xFFF0000B-1048565Adapter not initialized
0xFFF0000C-1048564No free connections available
0xFFF0000D-1048563Device not configured or not supported
0xFFF0000E-1048562Hardware not found
0xFFF0000F-1048561Error when reading parameters
0xFFF00010-1048560Error when writing parameters
0xFFF00011-1048559Demo period expired
0xFFF00012-1048558Wrong character in text. Conversion not possible
0xFFF00013-1048557Buffer is not long enough
0xFFF00014-1048556File not found
0xFFF00015-1048555Error when calling configuration program
0xFFF00016-1048554Error when loading DLL dynamically
0xFFF00017-1048553Could not create file
0xFFF50000-720896No free job buffer available
0xFFF50001-720895Invalid packet
0xFFF50002-720894No connection to PLC
0xFFF50003-720893Connection closed
0xFFF50004-720892Timeout
0xFFF50005-720891Invalid context
0xFFF50006-720890PLC memory error
0xFFF50007-720889Invalid operating state
0xFFF50008-720888Invalid address on PLC
0xFFF50009-720887Invalid mode
0xFFF5000A-720886No data available e.g. DB is missing
0xFFF5000B-720885Priority class associated to OB does not exist
0xFFF5000C-720884Empty blocklist
0xFFF5000D-720883Block size error
0xFFF5000E-720882Invalid block number
0xFFF5000F-720881Protection level of function not sufficient
0xFFF50010-720880Unknown SSL-ID (e.g. access to CP instead of PLC)
0xFFF50011-720879Unknown SSL-index (e.g. access to CP instead of PLC)
0xFFF50012-720878Information currently not ascertainable
0xFFF50013-720877Unknown error message from PLC (please report!)
0xFFF50014-720876Hardware error e.g. not available periphery
0xFFF50015-720875Object access not allowed
0xFFF50016-720874Context not supported
0xFFF50017-720873Type (data type) not supported
0xFFF50018-720872Internal error, please report
0xFFF50019-720871Error rebooting PLC
0xFFF5001A-720870Error restarting PLC
0xFFF5001B-720869Connection end received
0xFFF5001C-720868PLC not found
0xFFF5001D-720867Too many data for this version of ACCON-AGLink
0xFFF5001E-720866PLC does not support this function
0xFFF5001F-720865Wrong Password
0xFFF50020-720864Connection already legitimated
0xFFF50021-720863Legitimation already released
0xFFF50022-720862Password not neccessary
0xFFF50023-720861At least one variable address invalid
0xFFF50024-720860Job does not exist
0xFFF50025-720859Invalid job state
0xFFF50026-720858Invalid cycle time
0xFFF50027-720857No more cyclic job possible
0xFFF50028-720856Function not posible for this job (invalid state)
0xFFF50029-720855Function abort (overload)
0xFFF5002A-720854No data for this variable
0xFFF5002B-720853Wrong time format
0xFFF5002C-720852Unknown PI name
0xFFF5002D-720851File transfer canceled by NCK
0xFFF5002E-720850Response too large for PDU size
0xFFF5002F-720849No H-PLC found
0xFFF50030-720848Data not changed
0xFFF30000-852968Error when reading device information
0xFFF30001-852967Error when reading bus parameters
0xFFF30002-852966Error when writing bus parameters
0xFFF30003-852965No resources available on device
0xFFF30004-852964Invalid device
0xFFF30005-852963Adapter not found
0xFFF30006-852962Needed device driver not found
0xFFF20000-917504The desired adapter address already exists
0xFFF20001-917503Invalid HSA (smaller than biggest active participant)
0xFFF20002-917502Adapter is not in the logical ring
0xFFF20004-917500Received package has wrong content
0xFFF20006-917498Unknown error number from adapter
0xFFF20007-917497Unknown error number from device driver
0xFFF20008-917496Communications adapter has been removed
0xFFF20009-917495Modem has been removed
0xFFF2000A-917494No directly connected PLC found
0xFFF20313-916717Invalid speed on MPI bus
0xFFF20314-916716Address is bigger than HSA
0xFFF20315-916715The desired adapter address already exists
0xFFF2031A-916710No other active bus participants found
0xFFF2031C-916708Bus is jammed
0xFFF2031D-916707Bus is jammed
0xFFF2031E-916706Automatic detection of bus profile doesn't work, missing bus parameter telegram
0xFFF20337-916681Legitimation missing
0xFFF10000-983040COM-Port already used
0xFFF10001-983039Modem not found
0xFFF10002-983038Modem not onhook
0xFFF10003-983037Modem not offhook
0xFFF10004-983036Error in basic initialisation
0xFFF10005-983035Error in Initstring 1
0xFFF10006-983034Error in Initstring 2
0xFFF10007-983033Error in Initstring 3
0xFFF10008-983032Error in Initstring 4
0xFFF10009-983031Error in dialtype sequence
0xFFF1000A-983030Error in dialtone sequence
0xFFF1000B-983029Error in autoanswer sequence
0xFFF1000C-983028Modem has been removed
0xFFF1000D-983027Connection could not be established
0xFFF1000E-983026Login denied. Unknown user.
0xFFF1000F-983025Login denied. Wrong password.
0xFFF10010-983024Login denied. Callback number defined in adapter.
0xFFF10011-983023Error while dialing
0xFFF80000-524288Function not allowed
0xFFF80001-524287Invalid project handle
0xFFF80002-524286Error opening project
0xFFF80003-524285Error creating program instance of project
0xFFF80004-524284Error closing project
0xFFF80005-524283No resp. no more programs found
0xFFF80006-524282Program not found
0xFFF80007-524281At least one of the specified parameters is invalid
0xFFF80008-524280Runtime has expired (demo version)
0xFFF8000A-524278No resp. invalid data specified
0xFFF8000B-524277The program selected has no symbol table
0xFFF8000C-524276Symbol table already opened
0xFFF8000D-524275No resp. no more symbol entry found
0xFFF8000E-524274Error reading symbol entry
0xFFF8000F-524273Symbol not found
0xFFF80010-524272Operand not found
0xFFF80011-524271Invalid symbol
0xFFF80012-524270Invalid operand
0xFFF80013-524269Invalid filter string
0xFFF80014-524268Data block (DB) not present
0xFFF80015-524267Error reading DB block data
0xFFF80016-524266Error parsing DB block data
0xFFF80017-524265An opened DB is already present
0xFFF80018-524264No opened DB present
0xFFF80019-524263No resp. no more DB component found
0xFFF8001A-524262Specified DB component not found
0xFFF8001B-524261Specified DB component is invalid
0xFFF8001C-524260Specified DB component not matching
0xFFF8001E-524258Invalid constant
0xFFF8001F-524257Invalid constant size or format
0xFFF80020-524256Object type initialization failed
0xFFF80021-524255Invalid version of message configuration
0xFFF80022-524254Error opening message configuration
0xFFF80023-524253Error closing message configuration
0xFFF80024-524252No resp. no more message entry found
0xFFF80025-524251No resp. no more language found
0xFFF80026-524250Database access error
0xFFF80027-524249Invalid signal number
0xFFF80028-524248Invalid add. value specification
0xFFF80029-524247Add. value number invalid
0xFFF8002A-524246Element type of add. value invalid
0xFFF8002B-524245Add. value data length invalid
0xFFF8002C-524244Format specification missing
0xFFF8002D-524243Format specification invalid
0xFFF8002E-524242No resp. no more text library found
0xFFF8002F-524241No resp. no more text library entry found

Driver Revision History

Siemens Revision History

Version 

Notes

2.2.2.0

Initial release on new documentation standards.


In this section...