Boa tarde Fernando,
Segui suas instruções e fiz tudo do zero. Houveram de fato algumas mudanças no arquivo de logs. Segue abaixo tentativa em RTU, em sequência a tentativa TCP. E por fim o manual do PLC conforme requisitado.
RTU
11/12/2017 15:06:16.566 (40CC) DRIVER Driver name: Driver Modicon Modbus v3.1.36 (IOKitLib v2.0.77)
11/12/2017 15:06:16.566 (40CC) DRIVER IOKitLib version 2.0.77 of Mar 17 2017 09:53:47
11/12/2017 15:06:16.566 (40CC) DEBUG CModbusHost CREATED
11/12/2017 15:06:16.566 (40CC) DRIVER Selected RTU mode!
11/12/2017 15:06:16.566 (40CC) DRIVER Warning: Ethernet layer being used without ModbusTCP protocol!
11/12/2017 15:06:16.566 (40CC) DRIVER User Types file compiled successfully!
11/12/2017 15:06:16.566 (40CC) DRIVER drvStartComm(0,0,0,0)
11/12/2017 15:06:16.566 (40CC) DRIVER Current configuration (76 parameters):
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.BackupIP = ‘’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.BackupIP2 = ‘’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.BackupIP3 = ‘’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.ListenIP = ‘’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.MainIP = ‘192.168.0.60’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.MainPort = 502
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.PingTimeoutMs = 4000
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.PingTries = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Ethernet.Transport = ‘TCP’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.GiveUpTries = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Log.Enable = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Log.Filename = ‘C:\TesteCFRIARTU4.log’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.RAS.ATCommand = ‘’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.RecoverEnable = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.RecoverPeriodSec = 20
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Serial.Baudrate = 9600
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Serial.DataBits = 8
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Serial.Port = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.TAPI.ModemID = 4294967295
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.TAPI.PhoneNumber = ‘’
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.TimeoutMs = 1000
11/12/2017 15:06:16.567 (40CC) DRIVER - IO.Type = ‘Ethernet’
11/12/2017 15:06:16.567 (40CC) DRIVER - ModiconModbus.ConfigFile = '[Functions]
Function: 1
Read: 4
Write: 0
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
Function: 2
Read: 3
Write: 6
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
[End]
’
11/12/2017 15:06:16.567 (40CC) DRIVER - ModiconModbus.DefaultSlaveAddress = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - ModiconModbus.EnableGenSOERegGrouping = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - ModiconModbus.MaxPDUSize = 253
11/12/2017 15:06:16.567 (40CC) DRIVER - ModiconModbus.Olderaddr = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - ModiconModbus.UserTypesConfigFile = '// USER DEFINED TYPES SAMPLE CONFIG FILE
// The samples below illustrate how to create user defined structs, using the driver built-in types (note the built-in
// types must be entered with the same keywords used in the Data combobox of the operations).
// The new user types can afterwards be used in the same way as the other built-in types in the Data combobox.
/* Sample types entirely commented by default
struct TYPE1 // TYPE 1 - declares struct with elements with no name, and no timestamp
{
int16;
word;
dword;
int32;
}
// TYPE2 declares named elements, and includes a timestamp of GenTime type. The named elements can then be
// loaded to the user application using E3 Tag Browser.
// NOTE: the timestamp value will not be returned on a block element, but rather returned on the timestamp property
// of the block type tag. The order in which the timestamp appears within the structure is related to the order
// in which this field appears within the data area of the received protocol frame (usually the first field).
struct TYPE2
{
timestamp = GenTime; // this time field will be returned in the block’s timestamp field
GenTime timeField; // this time field will be returned in the block’s first element
dword dwordField;
}
struct TYPE3 // this type has a timestamp of type UTC32 and some named elements
{
DefaultAddress = 0x101;
timestamp = UTC32;
float Va;
float Vb;
float Vc;
float Ia;
float Ib;
float Ic;
}
*/’
11/12/2017 15:06:16.567 (40CC) DRIVER - ModiconModbus.WaitSilenceOnError = 1
11/12/2017 15:06:16.567 (40CC) DRIVER - 47 parameters with value = 0 were omitted
11/12/2017 15:06:16.568 (4B9C) IOKIT INITIALIZING…
11/12/2017 15:06:16.568 (4B9C) SOCKET Winsock initialized: version=2.2, highVersion=2.2
11/12/2017 15:06:16.568 (4B9C) IOKIT INITIALIZED!
11/12/2017 15:06:16.568 (4B9C) IOKIT Request handler enabled
11/12/2017 15:06:16.568 (4B9C) IOKIT CONNECTING…
11/12/2017 15:06:16.568 (4B9C) SOCKET connecting socket to ‘192.168.0.60’ on port 502…
11/12/2017 15:06:16.573 (4B9C) SOCKET socket connected to ‘192.168.0.60’ on port 502 (local port 64450)!
11/12/2017 15:06:16.573 (4B9C) IOKIT CONNECTED!
11/12/2017 15:06:19.150 (1864) DRIVER Driver name: Driver Modicon Modbus v3.1.36 (IOKitLib v2.0.77)
11/12/2017 15:06:19.150 (1864) DRIVER IOKitLib version 2.0.77 of Mar 17 2017 09:53:47
11/12/2017 15:06:19.150 (1864) DEBUG CModbusHost CREATED
11/12/2017 15:06:19.150 (1864) DRIVER Selected RTU mode!
11/12/2017 15:06:19.150 (1864) DRIVER Warning: Ethernet layer being used without ModbusTCP protocol!
11/12/2017 15:06:19.151 (1864) DRIVER User Types file compiled successfully!
11/12/2017 15:06:19.151 (1864) DRIVER drvStartComm(0,0,0,0)
11/12/2017 15:06:19.151 (1864) DRIVER Current configuration (76 parameters):
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.BackupIP = ‘’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.BackupIP2 = ‘’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.BackupIP3 = ‘’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.ListenIP = ‘’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.MainIP = ‘192.168.0.60’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.MainPort = 502
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.PingTimeoutMs = 4000
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.PingTries = 1
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Ethernet.Transport = ‘TCP’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.GiveUpTries = 1
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Log.Enable = 1
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Log.Filename = ‘C:\TesteCFRIARTU4.log’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.RAS.ATCommand = ‘’
11/12/2017 15:06:19.151 (1864) DRIVER - IO.RecoverEnable = 1
11/12/2017 15:06:19.151 (1864) DRIVER - IO.RecoverPeriodSec = 20
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Serial.Baudrate = 9600
11/12/2017 15:06:19.151 (1864) DRIVER - IO.Serial.DataBits = 8
11/12/2017 15:06:19.152 (1864) DRIVER - IO.Serial.Port = 1
11/12/2017 15:06:19.152 (1864) DRIVER - IO.TAPI.ModemID = 4294967295
11/12/2017 15:06:19.152 (1864) DRIVER - IO.TAPI.PhoneNumber = ‘’
11/12/2017 15:06:19.152 (1864) DRIVER - IO.TimeoutMs = 1000
11/12/2017 15:06:19.152 (1864) DRIVER - IO.Type = ‘Ethernet’
11/12/2017 15:06:19.152 (1864) DRIVER - ModiconModbus.ConfigFile = '[Functions]
Function: 1
Read: 4
Write: 0
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
Function: 2
Read: 3
Write: 6
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
[End]
’
11/12/2017 15:06:19.152 (1864) DRIVER - ModiconModbus.DefaultSlaveAddress = 1
11/12/2017 15:06:19.152 (1864) DRIVER - ModiconModbus.EnableGenSOERegGrouping = 1
11/12/2017 15:06:19.152 (1864) DRIVER - ModiconModbus.MaxPDUSize = 253
11/12/2017 15:06:19.152 (1864) DRIVER - ModiconModbus.Olderaddr = 1
11/12/2017 15:06:19.152 (1864) DRIVER - ModiconModbus.UserTypesConfigFile = '// USER DEFINED TYPES SAMPLE CONFIG FILE
// The samples below illustrate how to create user defined structs, using the driver built-in types (note the built-in
// types must be entered with the same keywords used in the Data combobox of the operations).
// The new user types can afterwards be used in the same way as the other built-in types in the Data combobox.
/* Sample types entirely commented by default
struct TYPE1 // TYPE 1 - declares struct with elements with no name, and no timestamp
{
int16;
word;
dword;
int32;
}
// TYPE2 declares named elements, and includes a timestamp of GenTime type. The named elements can then be
// loaded to the user application using E3 Tag Browser.
// NOTE: the timestamp value will not be returned on a block element, but rather returned on the timestamp property
// of the block type tag. The order in which the timestamp appears within the structure is related to the order
// in which this field appears within the data area of the received protocol frame (usually the first field).
struct TYPE2
{
timestamp = GenTime; // this time field will be returned in the block’s timestamp field
GenTime timeField; // this time field will be returned in the block’s first element
dword dwordField;
}
struct TYPE3 // this type has a timestamp of type UTC32 and some named elements
{
DefaultAddress = 0x101;
timestamp = UTC32;
float Va;
float Vb;
float Vc;
float Ia;
float Ib;
float Ic;
}
*/’
11/12/2017 15:06:19.152 (1864) DRIVER - ModiconModbus.WaitSilenceOnError = 1
11/12/2017 15:06:19.152 (1864) DRIVER - 47 parameters with value = 0 were omitted
11/12/2017 15:06:19.153 (18B8) IOKIT INITIALIZING…
11/12/2017 15:06:19.153 (18B8) SOCKET Winsock initialized: version=2.2, highVersion=2.2
11/12/2017 15:06:19.153 (18B8) IOKIT INITIALIZED!
11/12/2017 15:06:19.153 (18B8) IOKIT Request handler enabled
11/12/2017 15:06:19.153 (18B8) IOKIT CONNECTING…
11/12/2017 15:06:19.153 (18B8) SOCKET connecting socket to ‘192.168.0.60’ on port 502…
11/12/2017 15:06:19.154 (2B44) TAG Tag({1:}‘hr101’).Validate = Tag({1:}‘hr101’.Blob:005CDC90) (type=10;flags=9)
11/12/2017 15:06:19.154 (2B44) TAG Tag({1:}‘hr101.dword’).Validate = Tag({1:}‘hr101.dword’.Blob:005CD8E8) (type=10;flags=9)
11/12/2017 15:06:19.154 (2B44) TAG Tag({1:}‘hr101.int16’).Validate = Tag({1:}‘hr101.int16’.Blob:005CD818) (type=10;flags=9)
11/12/2017 15:06:19.154 (2B44) TAG Tag({1:}‘hr101.int32’).Validate = Tag({1:}‘hr101.int32’.Blob:005CD880) (type=10;flags=9)
11/12/2017 15:06:19.154 (2B44) TAG Tag({1:}‘hr101.float’).Validate = Tag({1:}‘hr101.float’.Blob:005CDAF0) (type=10;flags=9)
11/12/2017 15:06:19.154 (2B44) TAG Tag({1:}‘cl1000’).Validate = Tag({1:}‘cl1000’.Blob:005CDB58) (type=10;flags=9)
11/12/2017 15:06:19.155 (2B44) TAG Tag({1:}‘di1000’).Validate = Tag({1:}‘di1000’.Blob:005CD5A8) (type=10;flags=9)
11/12/2017 15:06:19.155 (2B44) TAG Tag(1.1.0.1).Validate = SUCCESS (type=10;flags=9)
11/12/2017 15:06:19.155 (2B44) SUPERBLOCK Tag(1.1.0.1).Normalize = Linear(1:1) (x1,00000001)
11/12/2017 15:06:19.155 (2B44) TAG Tag(1.1.0.8).Validate = SUCCESS (type=10;flags=9)
11/12/2017 15:06:19.155 (2B44) SUPERBLOCK Tag(1.1.0.8).Normalize = Linear(1:8) (x1,00000001)
11/12/2017 15:06:19.158 (18B8) SOCKET socket connected to ‘192.168.0.60’ on port 502 (local port 64452)!
11/12/2017 15:06:19.158 (18B8) IOKIT CONNECTED!
11/12/2017 15:06:19.166 (18B8) IO TX: 01 03 00 64 00 01 C5 D5
11/12/2017 15:06:20.169 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:20.169 (1864) TAG <== (1.014) Tag({1:}‘hr101’.Blob:005CDC90).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:20.186 (18B8) IO TX: 01 03 00 64 00 02 85 D4
11/12/2017 15:06:21.189 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:21.189 (1864) TAG <== (1.002) Tag({1:}‘hr101.dword’.Blob:005CD8E8).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:21.189 (18B8) IO TX: 01 03 00 64 00 01 C5 D5
11/12/2017 15:06:22.193 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:22.193 (1864) TAG <== (1.004) Tag({1:}‘hr101.int16’.Blob:005CD818).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:22.193 (18B8) IO TX: 01 03 00 64 00 02 85 D4
11/12/2017 15:06:23.196 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:23.196 (1864) TAG <== (1.003) Tag({1:}‘hr101.int32’.Blob:005CD880).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:23.196 (18B8) IO TX: 01 03 00 64 00 02 85 D4
11/12/2017 15:06:24.199 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:24.199 (1864) TAG <== (1.002) Tag({1:}‘hr101.float’.Blob:005CDAF0).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:24.199 (18B8) IO TX: 01 01 03 E7 00 01 4D B9
11/12/2017 15:06:25.201 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:25.201 (1864) TAG <== (1.002) Tag({1:}‘cl1000’.Blob:005CDB58).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:25.201 (18B8) IO TX: 01 02 03 E7 00 01 09 B9
11/12/2017 15:06:26.251 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:26.251 (1864) TAG <== (1.050) Tag({1:}‘di1000’.Blob:005CD5A8).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:26.251 (1864) SUPERBLOCK Linear(1:1).Unnormalize = Tag(1.0.4.1.Blob:00609F08)
11/12/2017 15:06:26.251 (18B8) IO TX: 01 04 00 00 00 08 F1 CC
11/12/2017 15:06:27.256 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:27.256 (1864) TAG <== (1.005) Tag(1.0.4.1.Blob:00609F08[8]).ReadBlock = ERROR (hr=8004E000)
11/12/2017 15:06:27.256 (18B8) IO TX: 01 03 00 64 00 01 C5 D5
11/12/2017 15:06:28.260 (18B8) IO RX: TIMEOUT
11/12/2017 15:06:28.260 (1864) TAG <== (1.003) Tag({1:}‘hr101’.Blob:005CDC90).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:28.260 (1864) DRIVER drvStopComm(0,0,0,0)
11/12/2017 15:06:28.260 (1864) IOKIT Stopping physical layer thread…
11/12/2017 15:06:28.260 (1864) IOKIT Waiting for termination of physical layer thread…
11/12/2017 15:06:28.260 (18B8) SOCKET socket closed
11/12/2017 15:06:28.260 (18B8) IOKIT TERMINATING…
11/12/2017 15:06:28.261 (18B8) IOKIT TERMINATED! (0 bytes sent, 0 bytes received)
11/12/2017 15:06:28.261 (18B8) IOKIT Request handler disabled
11/12/2017 15:06:28.261 (1864) IOKIT Physical layer thread stopped!
11/12/2017 15:06:28.261 (1864) DEBUG CModbusHost DELETED
11/12/2017 15:06:48.846 (40CC) DRIVER drvStopComm(0,0,0,0)
11/12/2017 15:06:48.846 (40CC) IOKIT Stopping physical layer thread…
11/12/2017 15:06:48.846 (40CC) IOKIT Waiting for termination of physical layer thread…
11/12/2017 15:06:48.846 (4B9C) SOCKET socket closed
11/12/2017 15:06:48.846 (4B9C) IOKIT TERMINATING…
11/12/2017 15:06:48.846 (4B9C) IOKIT TERMINATED! (0 bytes sent, 0 bytes received)
11/12/2017 15:06:48.846 (4B9C) IOKIT Request handler disabled
11/12/2017 15:06:48.846 (40CC) IOKIT Physical layer thread stopped!
11/12/2017 15:06:48.846 (40CC) DEBUG CModbusHost DELETED
TCP
11/12/2017 15:06:49.041 (2E1C) DRIVER Driver name: Driver Modicon Modbus v3.1.36 (IOKitLib v2.0.77)
11/12/2017 15:06:49.041 (2E1C) DRIVER IOKitLib version 2.0.77 of Mar 17 2017 09:53:47
11/12/2017 15:06:49.043 (2E1C) DEBUG CModbusHost CREATED
11/12/2017 15:06:49.043 (2E1C) DRIVER Selected ModbusTCP protocol!
11/12/2017 15:06:49.043 (2E1C) DRIVER User Types file compiled successfully!
11/12/2017 15:06:49.043 (2E1C) DRIVER drvStartComm(0,0,0,0)
11/12/2017 15:06:49.043 (2E1C) DRIVER Current configuration (76 parameters):
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.BackupIP = ‘’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.BackupIP2 = ‘’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.BackupIP3 = ‘’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.ListenIP = ‘’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.MainIP = ‘192.168.0.60’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.MainPort = 502
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.PingTimeoutMs = 4000
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.PingTries = 1
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Ethernet.Transport = ‘TCP’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.GiveUpTries = 1
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Log.Enable = 1
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Log.Filename = ‘C:\TesteCFRIATCP4.log’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.RAS.ATCommand = ‘’
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.RecoverEnable = 1
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.RecoverPeriodSec = 20
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Serial.Baudrate = 9600
11/12/2017 15:06:49.043 (2E1C) DRIVER - IO.Serial.DataBits = 8
11/12/2017 15:06:49.044 (2E1C) DRIVER - IO.Serial.Port = 1
11/12/2017 15:06:49.044 (2E1C) DRIVER - IO.TAPI.ModemID = 4294967295
11/12/2017 15:06:49.044 (2E1C) DRIVER - IO.TAPI.PhoneNumber = ‘’
11/12/2017 15:06:49.044 (2E1C) DRIVER - IO.TimeoutMs = 1000
11/12/2017 15:06:49.044 (2E1C) DRIVER - IO.Type = ‘Ethernet’
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.ConfigFile = '[Functions]
Function: 1
Read: 4
Write: 0
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
Function: 2
Read: 3
Write: 6
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
[End]
’
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.DefaultSlaveAddress = 1
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.EnableGenSOERegGrouping = 1
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.MaxPDUSize = 253
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.ModbusMode = 2
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.Olderaddr = 1
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.UserTypesConfigFile = '// USER DEFINED TYPES SAMPLE CONFIG FILE
// The samples below illustrate how to create user defined structs, using the driver built-in types (note the built-in
// types must be entered with the same keywords used in the Data combobox of the operations).
// The new user types can afterwards be used in the same way as the other built-in types in the Data combobox.
/* Sample types entirely commented by default
struct TYPE1 // TYPE 1 - declares struct with elements with no name, and no timestamp
{
int16;
word;
dword;
int32;
}
// TYPE2 declares named elements, and includes a timestamp of GenTime type. The named elements can then be
// loaded to the user application using E3 Tag Browser.
// NOTE: the timestamp value will not be returned on a block element, but rather returned on the timestamp property
// of the block type tag. The order in which the timestamp appears within the structure is related to the order
// in which this field appears within the data area of the received protocol frame (usually the first field).
struct TYPE2
{
timestamp = GenTime; // this time field will be returned in the block’s timestamp field
GenTime timeField; // this time field will be returned in the block’s first element
dword dwordField;
}
struct TYPE3 // this type has a timestamp of type UTC32 and some named elements
{
DefaultAddress = 0x101;
timestamp = UTC32;
float Va;
float Vb;
float Vc;
float Ia;
float Ib;
float Ic;
}
*/’
11/12/2017 15:06:49.044 (2E1C) DRIVER - ModiconModbus.WaitSilenceOnError = 1
11/12/2017 15:06:49.044 (2E1C) DRIVER - 46 parameters with value = 0 were omitted
11/12/2017 15:06:49.045 (1E20) IOKIT INITIALIZING…
11/12/2017 15:06:49.045 (1E20) SOCKET Winsock initialized: version=2.2, highVersion=2.2
11/12/2017 15:06:49.045 (1E20) IOKIT INITIALIZED!
11/12/2017 15:06:49.045 (1E20) IOKIT Request handler enabled
11/12/2017 15:06:49.045 (1E20) IOKIT CONNECTING…
11/12/2017 15:06:49.045 (1E20) SOCKET connecting socket to ‘192.168.0.60’ on port 502…
11/12/2017 15:06:49.049 (1E20) SOCKET socket connected to ‘192.168.0.60’ on port 502 (local port 64459)!
11/12/2017 15:06:49.049 (1E20) IOKIT CONNECTED!
11/12/2017 15:06:53.549 (32E4) DRIVER Driver name: Driver Modicon Modbus v3.1.36 (IOKitLib v2.0.77)
11/12/2017 15:06:53.549 (32E4) DRIVER IOKitLib version 2.0.77 of Mar 17 2017 09:53:47
11/12/2017 15:06:53.549 (32E4) DEBUG CModbusHost CREATED
11/12/2017 15:06:53.549 (32E4) DRIVER Selected ModbusTCP protocol!
11/12/2017 15:06:53.549 (32E4) DRIVER User Types file compiled successfully!
11/12/2017 15:06:53.549 (32E4) DRIVER drvStartComm(0,0,0,0)
11/12/2017 15:06:53.549 (32E4) DRIVER Current configuration (76 parameters):
11/12/2017 15:06:53.549 (32E4) DRIVER - IO.Ethernet.BackupIP = ‘’
11/12/2017 15:06:53.549 (32E4) DRIVER - IO.Ethernet.BackupIP2 = ‘’
11/12/2017 15:06:53.549 (32E4) DRIVER - IO.Ethernet.BackupIP3 = ‘’
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Ethernet.ListenIP = ‘’
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Ethernet.MainIP = ‘192.168.0.60’
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Ethernet.MainPort = 502
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Ethernet.PingTimeoutMs = 4000
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Ethernet.PingTries = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Ethernet.Transport = ‘TCP’
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.GiveUpTries = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Log.Enable = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Log.Filename = ‘C:\TesteCFRIATCP4.log’
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.RAS.ATCommand = ‘’
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.RecoverEnable = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.RecoverPeriodSec = 20
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Serial.Baudrate = 9600
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Serial.DataBits = 8
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Serial.Port = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.TAPI.ModemID = 4294967295
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.TAPI.PhoneNumber = ‘’
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.TimeoutMs = 1000
11/12/2017 15:06:53.550 (32E4) DRIVER - IO.Type = ‘Ethernet’
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.ConfigFile = '[Functions]
Function: 1
Read: 4
Write: 0
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
Function: 2
Read: 3
Write: 6
Type: word
Size: 2
FrameOrder: 0
ByteOrder: 0
WordOrder: 0
DWordOrder: 0
[End]
’
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.DefaultSlaveAddress = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.EnableGenSOERegGrouping = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.MaxPDUSize = 253
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.ModbusMode = 2
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.Olderaddr = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.UserTypesConfigFile = '// USER DEFINED TYPES SAMPLE CONFIG FILE
// The samples below illustrate how to create user defined structs, using the driver built-in types (note the built-in
// types must be entered with the same keywords used in the Data combobox of the operations).
// The new user types can afterwards be used in the same way as the other built-in types in the Data combobox.
/* Sample types entirely commented by default
struct TYPE1 // TYPE 1 - declares struct with elements with no name, and no timestamp
{
int16;
word;
dword;
int32;
}
// TYPE2 declares named elements, and includes a timestamp of GenTime type. The named elements can then be
// loaded to the user application using E3 Tag Browser.
// NOTE: the timestamp value will not be returned on a block element, but rather returned on the timestamp property
// of the block type tag. The order in which the timestamp appears within the structure is related to the order
// in which this field appears within the data area of the received protocol frame (usually the first field).
struct TYPE2
{
timestamp = GenTime; // this time field will be returned in the block’s timestamp field
GenTime timeField; // this time field will be returned in the block’s first element
dword dwordField;
}
struct TYPE3 // this type has a timestamp of type UTC32 and some named elements
{
DefaultAddress = 0x101;
timestamp = UTC32;
float Va;
float Vb;
float Vc;
float Ia;
float Ib;
float Ic;
}
*/’
11/12/2017 15:06:53.550 (32E4) DRIVER - ModiconModbus.WaitSilenceOnError = 1
11/12/2017 15:06:53.550 (32E4) DRIVER - 46 parameters with value = 0 were omitted
11/12/2017 15:06:53.551 (1AC8) IOKIT INITIALIZING…
11/12/2017 15:06:53.551 (1AC8) SOCKET Winsock initialized: version=2.2, highVersion=2.2
11/12/2017 15:06:53.551 (1AC8) IOKIT INITIALIZED!
11/12/2017 15:06:53.551 (1AC8) IOKIT Request handler enabled
11/12/2017 15:06:53.551 (1AC8) IOKIT CONNECTING…
11/12/2017 15:06:53.551 (1AC8) SOCKET connecting socket to ‘192.168.0.60’ on port 502…
11/12/2017 15:06:53.552 (47E0) TAG Tag({1:}‘hr101’).Validate = Tag({1:}‘hr101’.Blob:003D4130) (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) TAG Tag({1:}‘hr101.dword’).Validate = Tag({1:}‘hr101.dword’.Blob:003D3FF8) (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) TAG Tag({1:}‘hr101.int16’).Validate = Tag({1:}‘hr101.int16’.Blob:003D3F90) (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) TAG Tag({1:}‘hr101.int32’).Validate = Tag({1:}‘hr101.int32’.Blob:003D43A0) (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) TAG Tag({1:}‘hr101.float’).Validate = Tag({1:}‘hr101.float’.Blob:003D4060) (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) TAG Tag({1:}‘cl1000’).Validate = Tag({1:}‘cl1000’.Blob:003D4198) (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) TAG Tag({1:}‘di1000’).Validate = Tag({1:}‘di1000’.Blob:003D4268) (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) TAG Tag(1.1.0.1).Validate = SUCCESS (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) SUPERBLOCK Tag(1.1.0.1).Normalize = Linear(1:1) (x1,00000001)
11/12/2017 15:06:53.552 (47E0) TAG Tag(1.1.0.8).Validate = SUCCESS (type=10;flags=9)
11/12/2017 15:06:53.552 (47E0) SUPERBLOCK Tag(1.1.0.8).Normalize = Linear(1:8) (x1,00000001)
11/12/2017 15:06:53.557 (1AC8) SOCKET socket connected to ‘192.168.0.60’ on port 502 (local port 64462)!
11/12/2017 15:06:53.557 (1AC8) IOKIT CONNECTED!
11/12/2017 15:06:53.563 (1AC8) IO TX: 00 00 00 00 00 06 01 03 00 64 00 01
11/12/2017 15:06:54.564 (1AC8) IO RX: TIMEOUT
11/12/2017 15:06:54.564 (32E4) TAG <== (1.011) Tag({1:}‘hr101’.Blob:003D4130).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:54.581 (1AC8) IO TX: 00 01 00 00 00 06 01 03 00 64 00 02
11/12/2017 15:06:55.585 (1AC8) IO RX: TIMEOUT
11/12/2017 15:06:55.585 (32E4) TAG <== (1.003) Tag({1:}‘hr101.dword’.Blob:003D3FF8).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:55.585 (1AC8) IO TX: 00 02 00 00 00 06 01 03 00 64 00 01
11/12/2017 15:06:56.588 (1AC8) IO RX: TIMEOUT
11/12/2017 15:06:56.588 (32E4) TAG <== (1.003) Tag({1:}‘hr101.int16’.Blob:003D3F90).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:56.588 (1AC8) IO TX: 00 03 00 00 00 06 01 03 00 64 00 02
11/12/2017 15:06:57.591 (1AC8) IO RX: TIMEOUT
11/12/2017 15:06:57.591 (32E4) TAG <== (1.003) Tag({1:}‘hr101.int32’.Blob:003D43A0).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:57.591 (1AC8) IO TX: 00 04 00 00 00 06 01 03 00 64 00 02
11/12/2017 15:06:58.594 (1AC8) IO RX: TIMEOUT
11/12/2017 15:06:58.594 (32E4) TAG <== (1.003) Tag({1:}‘hr101.float’.Blob:003D4060).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:58.594 (1AC8) IO TX: 00 05 00 00 00 06 01 01 03 E7 00 01
11/12/2017 15:06:59.597 (1AC8) IO RX: TIMEOUT
11/12/2017 15:06:59.597 (32E4) TAG <== (1.003) Tag({1:}‘cl1000’.Blob:003D4198).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:06:59.597 (1AC8) IO TX: 00 06 00 00 00 06 01 02 03 E7 00 01
11/12/2017 15:07:00.601 (1AC8) IO RX: TIMEOUT
11/12/2017 15:07:00.601 (32E4) TAG <== (1.004) Tag({1:}‘di1000’.Blob:003D4268).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:07:00.601 (32E4) SUPERBLOCK Linear(1:1).Unnormalize = Tag(1.0.4.1.Blob:003D42D0)
11/12/2017 15:07:00.601 (1AC8) IO TX: 00 07 00 00 00 06 01 04 00 00 00 08
11/12/2017 15:07:01.604 (1AC8) IO RX: TIMEOUT
11/12/2017 15:07:01.604 (32E4) TAG <== (1.002) Tag(1.0.4.1.Blob:003D42D0[8]).ReadBlock = ERROR (hr=8004E000)
11/12/2017 15:07:01.604 (1AC8) IO TX: 00 08 00 00 00 06 01 03 00 64 00 01
11/12/2017 15:07:02.608 (1AC8) IO RX: TIMEOUT
11/12/2017 15:07:02.608 (32E4) TAG <== (1.004) Tag({1:}‘hr101’.Blob:003D4130).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:07:02.608 (1AC8) IO TX: 00 09 00 00 00 06 01 03 00 64 00 02
11/12/2017 15:07:03.611 (1AC8) IO RX: TIMEOUT
11/12/2017 15:07:03.611 (32E4) TAG <== (1.003) Tag({1:}‘hr101.dword’.Blob:003D3FF8).ReadValue = ERROR (hr=8004E000)
11/12/2017 15:07:03.611 (32E4) DRIVER drvStopComm(0,0,0,0)
11/12/2017 15:07:03.611 (32E4) IOKIT Stopping physical layer thread…
11/12/2017 15:07:03.611 (32E4) IOKIT Waiting for termination of physical layer thread…
11/12/2017 15:07:03.611 (1AC8) SOCKET socket closed
11/12/2017 15:07:03.611 (1AC8) IOKIT TERMINATING…
11/12/2017 15:07:03.612 (1AC8) IOKIT TERMINATED! (0 bytes sent, 0 bytes received)
11/12/2017 15:07:03.612 (1AC8) IOKIT Request handler disabled
11/12/2017 15:07:03.612 (32E4) IOKIT Physical layer thread stopped!
11/12/2017 15:07:03.612 (32E4) DEBUG CModbusHost DELETED
http://www.carel.com/documents/10191/0/+0300025EN/cbdac403-8172-4f5d-a8a5-e2181c01ef86?version=1.0
Novidades, por favor me informe.
Grato.