namespace snap7Enc
{
///
/// Types of S7 cpu supported by the library
///
public enum CpuType
{
///
/// S7 200 cpu type
///
S7200 = 0,
///
/// S7 300 cpu type
///
S7300 = 10,
///
/// S7 400 cpu type
///
S7400 = 20,
///
/// S7 1200 cpu type
///
S71200 = 30,
///
/// S7 1500 cpu type
///
S71500 = 40,
}
///
/// Types of error code that can be set after a function is called
///
public enum ErrorCode
{
///
/// The function has been executed correctly
///
NoError = 0,
///
/// Wrong type of CPU error
///
WrongCPU_Type = 1,
///
/// Connection error
///
ConnectionError = 2,
///
/// Ip address not available
///
IPAddressNotAvailable,
///
/// Wrong format of the variable
///
WrongVarFormat = 10,
///
/// Wrong number of received bytes
///
WrongNumberReceivedBytes = 11,
///
/// Error on send data
///
SendData = 20,
///
/// Error on read data
///
ReadData = 30,
///
/// Error on write data
///
WriteData = 50
}
///
/// Types of memory area that can be read
///
public enum DataType
{
///
/// Input area memory
///
Input = 129,
///
/// Output area memory
///
Output = 130,
///
/// Merkers area memory (M0, M0.0, ...)
///
Memory = 131,
///
/// DB area memory (DB1, DB2, ...)
///
DataBlock = 132,
///
/// Timer area memory(T1, T2, ...)
///
Timer = 29,
///
/// Counter area memory (C1, C2, ...)
///
Counter = 28
}
///
/// Types
///
public enum VarType
{
///
/// S7 Bit variable type (bool)
///
Bit,
///
/// S7 Byte variable type (8 bits)
///
Byte,
///
/// S7 Word variable type (16 bits, 2 bytes)
///
Word,
///
/// S7 DWord variable type (32 bits, 4 bytes)
///
DWord,
///
/// S7 Int variable type (16 bits, 2 bytes)
///
Int,
///
/// DInt variable type (32 bits, 4 bytes)
///
DInt,
///
/// Real variable type (32 bits, 4 bytes)
///
Real,
///
/// String variable type (variable)
///
String,
///
/// String variable type (variable)
///
StringEx,
///
/// Timer variable type
///
Timer,
///
/// Counter variable type
///
Counter
}
}