Conflito entre Drivers

Boa noite a todos!

Estou enfrentando conflito entre dois drivers (modbus e sendmail). Quando utilizo apenas o driver modbus, consigo fazer a comunicação, porém quando adiciono o driver sendmail, não consigo fazer essa comunicação.

segue os logs dos dois drivers:
MODBUS: (Inicio a aplicação e ele não inicia o drive,quando inicio a comunicação manual na aba Drivers ele gera o seguinte log.)
02/04/2021 21:46:46.427 (1120) DRIVER Driver name: Driver Modicon Modbus v4.0.5 (IOKitLib v2.0.120)
02/04/2021 21:46:46.427 (1120) DRIVER IOKitLib version 2.0.120 of Nov 5 2020 16:22:49
02/04/2021 21:46:46.427 (1120) DEBUG CModbusHost CREATED
02/04/2021 21:46:46.427 (1120) DRIVER Selected ModbusTCP protocol!
02/04/2021 21:46:46.427 (1120) DRIVER User Types file compiled successfully!
02/04/2021 21:46:46.427 (1120) DRIVER drvStartComm(0,0,0,0)
02/04/2021 21:46:46.427 (1120) DRIVER Current configuration (79 parameters):
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.BackupIP = ‘’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.BackupIP2 = ‘’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.BackupIP3 = ‘’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.IPFilter = ‘’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.ListenIP = ‘’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.ListenPort = 1
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.MainIP = ‘127.0.0.1’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.MainLocalPort = 2
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.MainPort = 502
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.PingTimeoutMs = 4000
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.PingTries = 1
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Ethernet.Transport = ‘TCP’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.GiveUpTries = 1
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Log.Enable = 1
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Log.Filename = ‘C:\eeLogs\Modbus_%DATE%.log’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.RAS.ATCommand = ‘’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.RecoverEnable = 1
02/04/2021 21:46:46.427 (1120) DRIVER - IO.RecoverPeriodSec = 20
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Serial.Baudrate = 9600
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Serial.DataBits = 8
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Serial.Port = 1
02/04/2021 21:46:46.427 (1120) DRIVER - IO.TAPI.ModemID = 4294967295
02/04/2021 21:46:46.427 (1120) DRIVER - IO.TAPI.PhoneNumber = ‘’
02/04/2021 21:46:46.427 (1120) DRIVER - IO.TimeoutMs = 1000
02/04/2021 21:46:46.427 (1120) DRIVER - IO.Type = ‘Ethernet’
02/04/2021 21:46:46.427 (1120) DRIVER - ModiconModbus.ConfigFile = '[Functions]
[End]

02/04/2021 21:46:46.427 (1120) DRIVER - ModiconModbus.DefaultSlaveAddress = 1
02/04/2021 21:46:46.427 (1120) DRIVER - ModiconModbus.EnableGenSOERegGrouping = 1
02/04/2021 21:46:46.427 (1120) DRIVER - ModiconModbus.EnableReconnectAfterTimeout = 1
02/04/2021 21:46:46.427 (1120) DRIVER - ModiconModbus.MaxPDUSize = 253
02/04/2021 21:46:46.427 (1120) DRIVER - ModiconModbus.ModbusMode = 2
02/04/2021 21:46:46.427 (1120) DRIVER - ModiconModbus.UseGatewayTCP = 1
02/04/2021 21:46:46.427 (1120) 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;
}

*/’
02/04/2021 21:46:46.427 (1120) DRIVER - 46 parameters with value = 0 were omitted
02/04/2021 21:46:46.427 (0940) IOKIT INITIALIZING…
02/04/2021 21:46:46.427 (0940) SOCKET Winsock initialized: version=2.2, highVersion=2.2
02/04/2021 21:46:46.427 (0940) IOKIT INITIALIZED!
02/04/2021 21:46:46.427 (0940) IOKIT Request handler enabled
02/04/2021 21:46:46.427 (0940) IOKIT CONNECTING…
02/04/2021 21:46:46.427 (0940) SOCKET connecting socket to ‘127.0.0.1’ on port 502…
02/04/2021 21:46:46.427 (0A88) TAG Tag({1:}‘cl1’).Validate = Tag({1:}‘cl1’.Blob:00699060) (type=10;flags=9)
02/04/2021 21:46:46.427 (0A88) TAG Tag({2:}‘hr1’).Validate = Tag({2:}‘hr1’.Blob:0069B4A0) (type=10;flags=9)
02/04/2021 21:46:46.427 (0940) SOCKET socket connected to ‘127.0.0.1’ on port 502 (local port 52266)!
02/04/2021 21:46:46.427 (0940) IOKIT CONNECTED!
02/04/2021 21:46:46.443 (0940) IO TX: 00 00 00 00 00 06 01 01 00 01 00 01
02/04/2021 21:46:46.443 (0940) IO RX: 00 00 00 00 00 04 01 01 01 00
02/04/2021 21:46:46.443 (1120) TAG <== (0.012) Tag({1:}‘cl1’.Blob:00699060).ReadValue = (21:46:46.427) 0
02/04/2021 21:46:46.443 (0940) IO TX: 00 01 00 00 00 06 02 03 00 01 00 01
02/04/2021 21:46:46.443 (0940) IO RX: 00 01 00 00 00 05 02 03 02 00 00
02/04/2021 21:46:46.443 (1120) TAG <== (0.001) Tag({2:}‘hr1’.Blob:0069B4A0).ReadValue = (21:46:46.443) 0
02/04/2021 21:46:49.521 (1120) DRIVER drvStopComm(0,0,0,0)
02/04/2021 21:46:49.521 (1120) IOKIT Stopping physical layer thread…
02/04/2021 21:46:49.521 (1120) IOKIT Waiting for termination of physical layer thread…
02/04/2021 21:46:49.521 (0940) SOCKET socket closed
02/04/2021 21:46:49.521 (0940) IOKIT Request handler disabled
02/04/2021 21:46:49.521 (0940) IOKIT Request handler enabled
02/04/2021 21:46:49.521 (0940) IOKIT TERMINATING…
02/04/2021 21:46:49.521 (0940) IOKIT TERMINATED! (0 bytes sent, 0 bytes received)
02/04/2021 21:46:49.521 (0940) IOKIT Request handler disabled
02/04/2021 21:46:49.521 (1120) IOKIT Physical layer thread stopped!
02/04/2021 21:46:49.521 (1120) DEBUG CModbusHost DELETED

LOG SENDMAIL: (Está funcionando na aplicação)

02/04/2021 21:46:38.876 (1428) DRIVER Driver name: Driver ELIPSE SendMail v2.0.12 (IOKitLib v2.0.110)
02/04/2021 21:46:38.876 (1428) DRIVER IOKitLib version 2.0.110 of Sep 11 2019 09:59:23
02/04/2021 21:46:39.018 (1428) DRIVER OpenSSL context created with success!
02/04/2021 21:46:39.018 (1428) DRIVER OpenSSL created with success!
02/04/2021 21:46:39.018 (1428) DRIVER WSAStartup processed with success!
02/04/2021 21:46:39.018 (1428) DRIVER drvStartComm(587,0,0,0)
02/04/2021 21:46:39.018 (1428) DRIVER Current configuration (21 parameters):
02/04/2021 21:46:39.018 (1428) DRIVER - IO.GiveUpTries = 1
02/04/2021 21:46:39.018 (1428) DRIVER - IO.Log.Enable = 1
02/04/2021 21:46:39.018 (1428) DRIVER - IO.Log.Filename = ‘C:\eeLogs\SendMail_%DATE%.log’
02/04/2021 21:46:39.018 (1428) DRIVER - IO.RecoverPeriodSec = 25
02/04/2021 21:46:39.018 (1428) DRIVER - IO.Serial.Baudrate = 9600
02/04/2021 21:46:39.018 (1428) DRIVER - IO.Serial.DataBits = 8
02/04/2021 21:46:39.018 (1428) DRIVER - IO.Serial.Port = 1
02/04/2021 21:46:39.018 (1428) DRIVER - IO.TimeoutMs = 50000
02/04/2021 21:46:39.018 (1428) DRIVER - IO.Type = ‘None’
02/04/2021 21:46:39.018 (1428) DRIVER - SendMail.EmailAddress = ‘ma_mute_pequenino@hotmail.com’
02/04/2021 21:46:39.018 (1428) DRIVER - SendMail.SmtpServer = ‘smtp.office365.com
02/04/2021 21:46:39.018 (1428) DRIVER - SendMail.UserName = ‘SISTEMA GESTAO’
02/04/2021 21:46:39.018 (1428) DRIVER - 9 parameters with value = 0 were omitted
02/04/2021 21:46:39.018 (1428) DRIVER I/O Interface was configured as ‘NONE’, the driver is OFFLINE!!!
02/04/2021 21:47:06.791 (1428) DRIVER drvStopComm(587,0,0,0)
02/04/2021 21:47:06.791 (1428) DRIVER OpenSSL closed with success!
02/04/2021 21:47:06.791 (1428) DRIVER OpenSSL context closed with success!
02/04/2021 21:47:06.791 (1428) DRIVER WSACleanup processed with success!

Alguém poderia me ajudar?

Diego,

Por acaso você está usando o E3 em modo Demo?

Realmente Paulo Gustavo! Depois verifiquei que a versão demo permite apenas a comunicação com um drive.

Obrigado pela atenção!

1 Like