Added events in ModbusClient*.can
Added length property for ModbusSend() Introduced OnModbusReceive() called by OnTcpReceive() and OnUdpReceive()
This commit is contained in:
parent
ec17a10562
commit
2884b48093
10 changed files with 485 additions and 247 deletions
|
@ -1,128 +0,0 @@
|
||||||
/*@!Encoding:1252*/
|
|
||||||
|
|
||||||
includes
|
|
||||||
{
|
|
||||||
#include "ModbusUdpClientCommon.cin"
|
|
||||||
}
|
|
||||||
|
|
||||||
variables
|
|
||||||
{
|
|
||||||
msTimer muster;
|
|
||||||
byte gX[2] = {1, 0};
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get information of local network interface such like ip address
|
|
||||||
|
|
||||||
on preStart
|
|
||||||
{
|
|
||||||
writeClear(0);
|
|
||||||
setStartdelay(1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
on start
|
|
||||||
{
|
|
||||||
long fehler;
|
|
||||||
|
|
||||||
ModbusInit("192.168.1.3", 502);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 'r'
|
|
||||||
{
|
|
||||||
ModbusReadBits(0, 512);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 'a'
|
|
||||||
{
|
|
||||||
byte x[16] = {1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0};
|
|
||||||
ModbusWriteBitsB(0, 16, x);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 's'
|
|
||||||
{
|
|
||||||
byte x[16] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
|
|
||||||
ModbusWriteBitsB(0, 16, x);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 'Y'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(0, 0);
|
|
||||||
}
|
|
||||||
on key 'y'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(0, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 'X'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(1, 0);
|
|
||||||
}
|
|
||||||
on key 'x'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 'C'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(2, 0);
|
|
||||||
}
|
|
||||||
on key 'c'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(2, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 'V'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(3, 0);
|
|
||||||
}
|
|
||||||
on key 'v'
|
|
||||||
{
|
|
||||||
ModbusWriteBit(3, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key '+'
|
|
||||||
{
|
|
||||||
byte x[2] = {0xFF, 0xFF};
|
|
||||||
ModbusWriteBits(0, 16, x);
|
|
||||||
}
|
|
||||||
on key '-'
|
|
||||||
{
|
|
||||||
byte x[2] = {0x00, 0x00};
|
|
||||||
ModbusWriteBits(0, 16, x);
|
|
||||||
}
|
|
||||||
|
|
||||||
on key 't'
|
|
||||||
{
|
|
||||||
setTimerCyclic(muster, 100);
|
|
||||||
}
|
|
||||||
on key 'T'
|
|
||||||
{
|
|
||||||
cancelTimer(muster);
|
|
||||||
}
|
|
||||||
|
|
||||||
on timer muster
|
|
||||||
{
|
|
||||||
/*if (gX[0] != 0)
|
|
||||||
{
|
|
||||||
if (gX[0] == 0x80)
|
|
||||||
{
|
|
||||||
gX[0] = 0x00;
|
|
||||||
gX[1] = 0x01;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
gX[0] <<= 1;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (gX[1] == 0x80)
|
|
||||||
{
|
|
||||||
gX[0] = 0x01;
|
|
||||||
gX[1] = 0x00;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
gX[1] <<= 1;
|
|
||||||
}
|
|
||||||
ModbusWriteBits(0, 16, gX);*/
|
|
||||||
ModbusReadBits(0, 512);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**/
|
|
|
@ -17,7 +17,7 @@ void bin_to_strhex(byte bin[], char result[])
|
||||||
result[i * 3 + 2] = ' ';
|
result[i * 3 + 2] = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (elCount(bin) > 20)
|
if (elCount(bin) > 20) // trailing "..."
|
||||||
{
|
{
|
||||||
result[56] = '.';
|
result[56] = '.';
|
||||||
result[57] = '.';
|
result[57] = '.';
|
||||||
|
|
|
@ -26,6 +26,48 @@ on start
|
||||||
ModbusInit("192.168.1.3", 502);
|
ModbusInit("192.168.1.3", 502);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Modbus events ----------------------------------------------------------------------
|
||||||
|
void OnModbusReadBitsFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusReadRegistersFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegisterFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitsFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegistersFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnModbusReadBitsSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusReadRegistersSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegisterSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitsSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegistersSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Key events -------------------------------------------------------------------------
|
||||||
on key 'r'
|
on key 'r'
|
||||||
{
|
{
|
||||||
ModbusReadBits(0, 512);
|
ModbusReadBits(0, 512);
|
170
Modbus/ModbusClientUDP.can
Normal file
170
Modbus/ModbusClientUDP.can
Normal file
|
@ -0,0 +1,170 @@
|
||||||
|
/*@!Encoding:1252*/
|
||||||
|
|
||||||
|
includes
|
||||||
|
{
|
||||||
|
#include "ModbusUdpClientCommon.cin"
|
||||||
|
}
|
||||||
|
|
||||||
|
variables
|
||||||
|
{
|
||||||
|
msTimer muster;
|
||||||
|
byte gX[2] = {1, 0};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get information of local network interface such like ip address
|
||||||
|
|
||||||
|
on preStart
|
||||||
|
{
|
||||||
|
writeClear(0);
|
||||||
|
setStartdelay(1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
on start
|
||||||
|
{
|
||||||
|
long fehler;
|
||||||
|
|
||||||
|
ModbusInit("192.168.1.3", 502);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Modbus events ----------------------------------------------------------------------
|
||||||
|
void OnModbusReadBitsFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusReadRegistersFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegisterFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitsFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegistersFailed(enum ModbusRequestError error, enum ModbusException ex, struct ModbusApHeader mbap)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnModbusReadBitsSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusReadRegistersSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegisterSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteBitsSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
void OnModbusWriteRegistersSuccess(byte result[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Key events -------------------------------------------------------------------------
|
||||||
|
on key 'r'
|
||||||
|
{
|
||||||
|
ModbusReadBits(0, 512);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key 'a'
|
||||||
|
{
|
||||||
|
byte x[16] = {1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0};
|
||||||
|
ModbusWriteBitsB(0, 16, x);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key 's'
|
||||||
|
{
|
||||||
|
byte x[16] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1};
|
||||||
|
ModbusWriteBitsB(0, 16, x);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key 'Y'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(0, 0);
|
||||||
|
}
|
||||||
|
on key 'y'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key 'X'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(1, 0);
|
||||||
|
}
|
||||||
|
on key 'x'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key 'C'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(2, 0);
|
||||||
|
}
|
||||||
|
on key 'c'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key 'V'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(3, 0);
|
||||||
|
}
|
||||||
|
on key 'v'
|
||||||
|
{
|
||||||
|
ModbusWriteBit(3, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key '+'
|
||||||
|
{
|
||||||
|
byte x[2] = {0xFF, 0xFF};
|
||||||
|
ModbusWriteBits(0, 16, x);
|
||||||
|
}
|
||||||
|
on key '-'
|
||||||
|
{
|
||||||
|
byte x[2] = {0x00, 0x00};
|
||||||
|
ModbusWriteBits(0, 16, x);
|
||||||
|
}
|
||||||
|
|
||||||
|
on key 't'
|
||||||
|
{
|
||||||
|
setTimerCyclic(muster, 100);
|
||||||
|
}
|
||||||
|
on key 'T'
|
||||||
|
{
|
||||||
|
cancelTimer(muster);
|
||||||
|
}
|
||||||
|
|
||||||
|
on timer muster
|
||||||
|
{
|
||||||
|
if (gX[0] != 0)
|
||||||
|
{
|
||||||
|
if (gX[0] == 0x80)
|
||||||
|
{
|
||||||
|
gX[0] = 0x00;
|
||||||
|
gX[1] = 0x01;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
gX[0] <<= 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (gX[1] == 0x80)
|
||||||
|
{
|
||||||
|
gX[0] = 0x01;
|
||||||
|
gX[1] = 0x00;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
gX[1] <<= 1;
|
||||||
|
}
|
||||||
|
ModbusWriteBits(0, 16, gX);
|
||||||
|
//ModbusReadBits(0, 512);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**/
|
|
@ -13,7 +13,12 @@ void ModbusConnectTo(char Remote_IP[], word Remote_Port)
|
||||||
|
|
||||||
void ModbusSend(byte buffer[])
|
void ModbusSend(byte buffer[])
|
||||||
{
|
{
|
||||||
TcpSnd(buffer);
|
TcpSnd(buffer, elCount(buffer));
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModbusSend(byte buffer[], word length)
|
||||||
|
{
|
||||||
|
TcpSnd(buffer, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModbusRecv()
|
void ModbusRecv()
|
||||||
|
@ -21,31 +26,9 @@ void ModbusRecv()
|
||||||
TcpRecv();
|
TcpRecv();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void OnTcpReceive(dword socket, long result, dword address, dword port, byte buffer[], dword size)
|
void OnTcpReceive(dword socket, long result, dword address, dword port, byte buffer[], dword size)
|
||||||
{
|
{
|
||||||
if (result == 0)
|
OnModbusReceive(socket, result, address, port, buffer, size);
|
||||||
{
|
if (result == 0 && size != 0)
|
||||||
if (size == 0)
|
|
||||||
{
|
|
||||||
// Size of zero indicates that the socket was closed by the communication peer.
|
|
||||||
writeLineEx(0, 2, "<%NODE_NAME%> OnTcpReceive: Socket closed by peer");
|
|
||||||
gSocket.Close();
|
|
||||||
gSocketState = CLOSED;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Sucessfully received some bytes over the TCP/IP connection.
|
|
||||||
OnModbusReceive(buffer, size);
|
|
||||||
TcpRecv();
|
TcpRecv();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gIpLastErr = gSocket.GetLastSocketError();
|
|
||||||
gSocket.GetLastSocketErrorAsString(gIpLastErrStr, elcount(gIpLastErrStr));
|
|
||||||
writeLineEx(0, 2, "<%NODE_NAME%> OnTcpReceive error (%d): %s", gIpLastErr, gIpLastErrStr);
|
|
||||||
gSocket.Close();
|
|
||||||
gSocketState = CLOSED;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -13,7 +13,12 @@ void ModbusConnectTo(char Remote_IP[], word Remote_Port)
|
||||||
|
|
||||||
void ModbusSend(byte buffer[])
|
void ModbusSend(byte buffer[])
|
||||||
{
|
{
|
||||||
UdpSnd(buffer);
|
UdpSnd(buffer, elCount(buffer));
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModbusSend(byte buffer[], word length)
|
||||||
|
{
|
||||||
|
UdpSnd(buffer, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModbusRecv()
|
void ModbusRecv()
|
||||||
|
@ -21,31 +26,9 @@ void ModbusRecv()
|
||||||
UdpRecv();
|
UdpRecv();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void OnUdpReceiveFrom(dword socket, long result, dword address, dword port, byte buffer[], dword size)
|
void OnUdpReceiveFrom(dword socket, long result, dword address, dword port, byte buffer[], dword size)
|
||||||
{
|
{
|
||||||
if (result == 0)
|
OnModbusReceive(socket, result, address, port, buffer, size);
|
||||||
{
|
if (result == 0 && size != 0)
|
||||||
if (size == 0)
|
|
||||||
{
|
|
||||||
// Size of zero indicates that the socket was closed by the communication peer.
|
|
||||||
writeLineEx(0, 2, "<%BASE_FILE_NAME%> OnTcpReceive: Socket closed by peer");
|
|
||||||
gSocket.Close();
|
|
||||||
gSocketState = CLOSED;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Sucessfully received some bytes over the TCP/IP connection.
|
|
||||||
OnModbusReceive(buffer, size);
|
|
||||||
UdpRecv();
|
UdpRecv();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gIpLastErr = gSocket.GetLastSocketError();
|
|
||||||
gSocket.GetLastSocketErrorAsString(gIpLastErrStr, elcount(gIpLastErrStr));
|
|
||||||
writeLineEx(0, 2, "<%BASE_FILE_NAME%> OnTcpReceive error (%d): %s", gIpLastErr, gIpLastErrStr);
|
|
||||||
gSocket.Close();
|
|
||||||
gSocketState = CLOSED;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -22,7 +22,6 @@ word TcpOpenSocket()
|
||||||
CHAR errorText[200];
|
CHAR errorText[200];
|
||||||
|
|
||||||
localIp = SetupIp(Local_IP);
|
localIp = SetupIp(Local_IP);
|
||||||
localPort = random(65535-10240)+10240;
|
|
||||||
|
|
||||||
if (localIp == INVALID_IP)
|
if (localIp == INVALID_IP)
|
||||||
return INVALID_IP;
|
return INVALID_IP;
|
||||||
|
@ -30,6 +29,7 @@ word TcpOpenSocket()
|
||||||
// Try to open socket
|
// Try to open socket
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
localPort = random(65536-10240)+10240;
|
||||||
gSocket = TcpSocket::Open(localIp, localPort);
|
gSocket = TcpSocket::Open(localIp, localPort);
|
||||||
if (gSocket.GetLastSocketError() != 0)
|
if (gSocket.GetLastSocketError() != 0)
|
||||||
{
|
{
|
||||||
|
@ -149,7 +149,7 @@ void TcpRecv()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TcpSnd(byte buffer[])
|
void TcpSnd(byte buffer[], word length)
|
||||||
{
|
{
|
||||||
char str[20*3];
|
char str[20*3];
|
||||||
|
|
||||||
|
@ -170,9 +170,9 @@ void TcpSnd(byte buffer[])
|
||||||
}
|
}
|
||||||
|
|
||||||
bin_to_strhex(buffer, str);
|
bin_to_strhex(buffer, str);
|
||||||
writeLineEx(0, 1, "<%NODE_NAME%> TcpSnd: %s (Länge: %d)", str, elCount(buffer));
|
writeLineEx(0, 1, "<%NODE_NAME%> TcpSnd: %s (Länge: %d)", str, length);
|
||||||
|
|
||||||
if (gSocket.Send(buffer, elCount(buffer)) != 0)
|
if (gSocket.Send(buffer, length) != 0)
|
||||||
{
|
{
|
||||||
gIpLastErr = gSocket.GetLastSocketError();
|
gIpLastErr = gSocket.GetLastSocketError();
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,11 @@ dword SetupIp(char Local_IP[])
|
||||||
int adapterIndex;
|
int adapterIndex;
|
||||||
const int size = 512;
|
const int size = 512;
|
||||||
char text[size] = "";
|
char text[size] = "";
|
||||||
dword addresses[1];
|
dword addresses[8];
|
||||||
dword address;
|
dword address;
|
||||||
word adapterCount;
|
word adapterCount;
|
||||||
word i;
|
word i;
|
||||||
|
long error;
|
||||||
|
|
||||||
adapterCount = IpGetAdapterCount();
|
adapterCount = IpGetAdapterCount();
|
||||||
adapterIndex = @sysvar::TCPIP::AdapterIndex;
|
adapterIndex = @sysvar::TCPIP::AdapterIndex;
|
||||||
|
@ -57,9 +58,16 @@ dword SetupIp(char Local_IP[])
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IpGetAdapterAddress(adapterIndex, addresses, 1) != 0)
|
error = IpGetAdapterAddress(adapterIndex, addresses, elCount(addresses));
|
||||||
|
if (error == 8)
|
||||||
{
|
{
|
||||||
writeLineEx(0, 3, "<%NODE_NAME%> Error: Could not retrieve IP address!");
|
writeLineEx(0, 3, "<%NODE_NAME%> Error 8: Could not retrieve IP address from interface #%d: The address array was insufficient", adapterIndex);
|
||||||
|
stop();
|
||||||
|
return INVALID_IP;
|
||||||
|
}
|
||||||
|
else if (error == 87)
|
||||||
|
{
|
||||||
|
writeLineEx(0, 3, "<%NODE_NAME%> Error 87: Could not retrieve IP address from interface #%d: The specified interface index was invalid", adapterIndex);
|
||||||
stop();
|
stop();
|
||||||
return INVALID_IP;
|
return INVALID_IP;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,6 @@ word UdpOpenSocket()
|
||||||
CHAR errorText[200];
|
CHAR errorText[200];
|
||||||
|
|
||||||
localIp = SetupIp(Local_IP);
|
localIp = SetupIp(Local_IP);
|
||||||
localPort = random(65535-10240)+10240;
|
|
||||||
|
|
||||||
if (localIp == INVALID_IP)
|
if (localIp == INVALID_IP)
|
||||||
return INVALID_IP;
|
return INVALID_IP;
|
||||||
|
@ -30,6 +29,7 @@ word UdpOpenSocket()
|
||||||
// Try to open socket
|
// Try to open socket
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
localPort = random(65536-10240)+10240;
|
||||||
gSocket = UdpSocket::Open(localIp, localPort);
|
gSocket = UdpSocket::Open(localIp, localPort);
|
||||||
if (gSocket.GetLastSocketError() != 0)
|
if (gSocket.GetLastSocketError() != 0)
|
||||||
{
|
{
|
||||||
|
@ -114,7 +114,7 @@ void UdpRecv()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void UdpSnd(byte buffer[])
|
void UdpSnd(byte buffer[], word length)
|
||||||
{
|
{
|
||||||
char str[20*3];
|
char str[20*3];
|
||||||
|
|
||||||
|
@ -135,9 +135,9 @@ void UdpSnd(byte buffer[])
|
||||||
}
|
}
|
||||||
|
|
||||||
bin_to_strhex(buffer, str);
|
bin_to_strhex(buffer, str);
|
||||||
writeLineEx(0, 1, "<%BASE_FILE_NAME%> UdpSnd: %s (Länge: %d)", str, elCount(buffer));
|
writeLineEx(0, 1, "<%BASE_FILE_NAME%> UdpSnd: %s (Länge: %d)", str, length);
|
||||||
|
|
||||||
if (gSocket.SendTo(gRemoteIP, gRemotePort, buffer, elCount(buffer)) != 0)
|
if (gSocket.SendTo(gRemoteIP, gRemotePort, buffer, length) != 0)
|
||||||
{
|
{
|
||||||
gIpLastErr = gSocket.GetLastSocketError();
|
gIpLastErr = gSocket.GetLastSocketError();
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
;CANoe Version |4|7|1|42353 modbus
|
;CANoe Version |4|7|1|42336 modbus
|
||||||
Version: 8.2.40 Build 40
|
Version: 8.2.40 Build 40
|
||||||
32 PRO
|
32 PRO
|
||||||
10
|
10
|
||||||
APPDIR Vector.CANoe.Debugger.DLL
|
|
||||||
Vector.CANoe.Debugger, Version=8.2.40.0, Culture=neutral, PublicKeyToken=null
|
|
||||||
Vector.CANoe.Debugger.DebuggerComponent
|
|
||||||
1
|
|
||||||
1.0.0
|
|
||||||
APPDIR Vector.CANoe.SignalGenerators.DLL
|
APPDIR Vector.CANoe.SignalGenerators.DLL
|
||||||
Vector.CANoe.SignalGenerators, Version=8.2.40.0, Culture=neutral, PublicKeyToken=null
|
Vector.CANoe.SignalGenerators, Version=8.2.40.0, Culture=neutral, PublicKeyToken=null
|
||||||
Vector.CANoe.SignalGenerators.ComponentWrapper
|
Vector.CANoe.SignalGenerators.ComponentWrapper
|
||||||
2
|
1
|
||||||
1.0.1
|
1.0.1
|
||||||
|
APPDIR Vector.CANoe.Debugger.DLL
|
||||||
|
Vector.CANoe.Debugger, Version=8.2.40.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
Vector.CANoe.Debugger.DebuggerComponent
|
||||||
|
2
|
||||||
|
1.0.0
|
||||||
VGlobalConfiguration 1 Begin_Of_Object
|
VGlobalConfiguration 1 Begin_Of_Object
|
||||||
17
|
17
|
||||||
VGlobalParameters 2 Begin_Of_Object
|
VGlobalParameters 2 Begin_Of_Object
|
||||||
|
@ -416,14 +416,17 @@ VCaplOptionsStreamer 3 Begin_Of_Object
|
||||||
End_Of_Object VCaplOptionsStreamer 3
|
End_Of_Object VCaplOptionsStreamer 3
|
||||||
VSVConfigurationStreamer 3 Begin_Of_Object
|
VSVConfigurationStreamer 3 Begin_Of_Object
|
||||||
1
|
1
|
||||||
701
|
1394
|
||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
<systemvariables version="4">
|
<systemvariables version="4">
|
||||||
<namespace name="" comment="">
|
<namespace name="" comment="">
|
||||||
<namespace name="TCPIP" comment="">
|
<namespace name="TCPIP" comment="">
|
||||||
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="AdapterIndex" comment="Index of network interface to use" bitcount="32" isSigned="true" encoding="65001" type="int" startValue="2" minValue="1" minValuePhys="1" maxValue="20" maxValuePhys="20" />
|
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="AdapterIndex" comment="Index of network interface to use" bitcount="32" isSigned="true" encoding="65001" type="int" startValue="2" minValue="1" minValuePhys="1" maxValue="20" maxValuePhys="20" />
|
||||||
</namespace>
|
</namespace>
|
||||||
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="" name="senden" comment="" bitcount="32" isSigned="true" encoding="65001" type="int" minValue="0" minValuePhys="0" maxValue="1" maxValuePhys="1" />
|
<namespace name="Modbus" comment="">
|
||||||
|
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="times" name="MaxRetransmissionCount" comment="How often a retransmission of a request will be sent until it gets discarded and an error is thrown." bitcount="32" isSigned="true" encoding="65001" type="int" startValue="3" minValue="1" minValuePhys="1" maxValue="10" maxValuePhys="10" />
|
||||||
|
<variable anlyzLocal="2" readOnly="false" valueSequence="false" unit="ms" name="RequestTimeout" comment="The maximum duration for a Modbus-UDP/-TCP request in milliseconds. After timeout a retransmission may be started (see MaxRetransmissionCount). Use `ping` to get the maximum latency to a device, double it and add a few ms for processing." bitcount="32" isSigned="true" encoding="65001" type="int" startValue="3" minValue="1" minValuePhys="1" maxValue="1000" maxValuePhys="1000" />
|
||||||
|
</namespace>
|
||||||
</namespace>
|
</namespace>
|
||||||
</systemvariables>
|
</systemvariables>
|
||||||
2
|
2
|
||||||
|
@ -692,11 +695,11 @@ Begin_Of_Multi_Line_String
|
||||||
Copyright (c) 2001-2006 Actipro Software LLC. All rights reserved.
|
Copyright (c) 2001-2006 Actipro Software LLC. All rights reserved.
|
||||||
http://www.ActiproSoftware.com/Products/DotNet/
|
http://www.ActiproSoftware.com/Products/DotNet/
|
||||||
|
|
||||||
--><ToolWindowLayout Version="1.0"><LayoutData><HostContainerControl><ToolWindowContainer Dock="Top" Size="863, 231" SelectedToolWindowGuid="7f29b491-3ada-4572-b140-b422651d6fed"><ToolWindow Key="{8F3DFCAC-9CCB-45C2-AF10-5DEC039B5956}" Guid="7f29b491-3ada-4572-b140-b422651d6fed" DockedSize="201, 227" FloatingLocation="6, 433" FloatingSize="300, 180" HasOptions="False" ImageIndex="-1" Text="Write" TitleBarText="Write"><AutoHideStateInfo RootDock="Top" /><DockedInsideHostStateInfo RootDock="Top" IsAttached="False"><DockedBy Guid="b2726676-2b89-4fee-b1a3-2be7bfbdec73" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" /></DockedInsideHostStateInfo><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow></ToolWindowContainer><ToolWindowContainer Dock="Bottom" Size="863, 288" SelectedToolWindowGuid="ac9be154-bd12-4ff9-b255-03e05277dbe2"><ToolWindow Key="{28077F35-C142-4ACC-B040-1BF0AB026C11}" Guid="ac9be154-bd12-4ff9-b255-03e05277dbe2" DockedSize="201, 284" FloatingLocat
|
--><ToolWindowLayout Version="1.0"><LayoutData><HostContainerControl><ToolWindowContainer Dock="Top" Size="1192, 231" SelectedToolWindowGuid="7f29b491-3ada-4572-b140-b422651d6fed"><ToolWindow Key="{8F3DFCAC-9CCB-45C2-AF10-5DEC039B5956}" Guid="7f29b491-3ada-4572-b140-b422651d6fed" DockedSize="201, 227" FloatingLocation="6, 433" FloatingSize="300, 180" HasOptions="False" ImageIndex="-1" Text="Write" TitleBarText="Write"><AutoHideStateInfo RootDock="Top" /><DockedInsideHostStateInfo RootDock="Top" IsAttached="False"><DockedBy Guid="b2726676-2b89-4fee-b1a3-2be7bfbdec73" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" /></DockedInsideHostStateInfo><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow></ToolWindowContainer><ToolWindowContainer Dock="Bottom" Size="1192, 288" SelectedToolWindowGuid="ac9be154-bd12-4ff9-b255-03e05277dbe2"><ToolWindow Key="{28077F35-C142-4ACC-B040-1BF0AB026C11}" Guid="ac9be154-bd12-4ff9-b255-03e05277dbe2" DockedSize="201, 284" FloatingLoc
|
||||||
kPersistNoLineBreak
|
kPersistNoLineBreak
|
||||||
ion="111, 442" FloatingSize="1192, 514" HasOptions="False" ImageIndex="-1" Text="Trace" TitleBarText="Trace"><AutoHideStateInfo RootDock="Bottom" /><DockedInsideHostStateInfo RootDock="Bottom" IsAttached="False"><DockedBy Guid="b2726676-2b89-4fee-b1a3-2be7bfbdec73" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" /></DockedInsideHostStateInfo><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow></ToolWindowContainer><ToolWindowContainer Dock="Left" Size="329, 905" SelectedToolWindowGuid="b2726676-2b89-4fee-b1a3-2be7bfbdec73"><ToolWindow Key="{F5E09530-AAE7-48d9-B925-CEF5027AA97D}" Guid="b2726676-2b89-4fee-b1a3-2be7bfbdec73" DockedSize="325, 325" FloatingSize="325, 380" HasOptions="False" ImageIndex="-1" Text="Symbol Explorer" TitleBarText="Symbol Explorer"><AutoHideStateInfo RootDock="Left" /><DockedInsideHostStateInfo RootDock="Left" IsAttached="False" /><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow></ToolWindowContainer></HostContainerControl>
|
ation="111, 442" FloatingSize="1192, 514" HasOptions="False" ImageIndex="-1" Text="Trace" TitleBarText="Trace"><AutoHideStateInfo RootDock="Bottom" /><DockedInsideHostStateInfo RootDock="Bottom" IsAttached="False"><DockedBy Guid="b2726676-2b89-4fee-b1a3-2be7bfbdec73" RootDock="Left" DockOperationType="RightOuter" IsTopMost="True" /></DockedInsideHostStateInfo><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow></ToolWindowContainer></HostContainerControl><AutoHide Dock="Left" /><AutoHide Dock="Right" /><AutoHide Dock="Top" /><AutoHide Dock="Bottom" /><TabbedDocuments Orientation="Horizontal" /><FloatingContainers /><Hidden><ToolWindow Key="{F5E09530-AAE7-48d9-B925-CEF5027AA97D}" Guid="b2726676-2b89-4fee-b1a3-2be7bfbdec73" State="DockableInsideHost" DockedSize="221, 325" FloatingSize="325, 380"><AutoHideStateInfo RootDock="Left" /><DockedInsideHostStateInfo RootDock="Left" IsAttached="False" /><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow><ToolWindow Key="{497
|
||||||
kPersistNoLineBreak
|
kPersistNoLineBreak
|
||||||
<AutoHide Dock="Left" /><AutoHide Dock="Right" /><AutoHide Dock="Top" /><AutoHide Dock="Bottom" /><TabbedDocuments Orientation="Horizontal" /><FloatingContainers /><Hidden><ToolWindow Key="{49714911-9568-49CC-A9CE-3B0905658C4A}" Guid="db27ffca-d17e-40f0-a70b-be70fe5eb4ec" State="DockableInsideHost" DockedSize="381, 0" FloatingLocation="1151, 79" FloatingSize="300, 180"><AutoHideStateInfo RootDock="Right" /><DockedInsideHostStateInfo RootDock="Right" IsAttached="False" /><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow></Hidden></LayoutData><CustomData /></ToolWindowLayout>
|
14911-9568-49CC-A9CE-3B0905658C4A}" Guid="db27ffca-d17e-40f0-a70b-be70fe5eb4ec" State="DockableInsideHost" DockedSize="381, 0" FloatingLocation="1151, 79" FloatingSize="300, 180"><AutoHideStateInfo RootDock="Right" /><DockedInsideHostStateInfo RootDock="Right" IsAttached="False" /><DockedOutsideHostStateInfo IsAttached="False" /></ToolWindow></Hidden></LayoutData><CustomData /></ToolWindowLayout>
|
||||||
End_Of_Serialized_Data 3
|
End_Of_Serialized_Data 3
|
||||||
End_Of_Object VDesktop 3
|
End_Of_Object VDesktop 3
|
||||||
VDesktop 3 Begin_Of_Object
|
VDesktop 3 Begin_Of_Object
|
||||||
|
@ -1330,9 +1333,37 @@ Grafik-Fenster
|
||||||
237
|
237
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
|
1
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
|
-11
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
400
|
||||||
|
0
|
||||||
|
Tahoma
|
||||||
|
0
|
||||||
|
1
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
-11
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
34
|
||||||
|
0
|
||||||
|
0
|
||||||
|
0
|
||||||
|
400
|
||||||
|
0
|
||||||
|
Tahoma
|
||||||
0
|
0
|
||||||
1
|
1
|
||||||
1
|
1
|
||||||
|
@ -1516,7 +1547,7 @@ End_Of_Serialized_Data 14
|
||||||
6
|
6
|
||||||
1
|
1
|
||||||
14
|
14
|
||||||
ver=2: FT TF TF FF FT FT;F T GLLogger;F T TCPIP;T F _Statistics
|
ver=2: FT TF TF FF FT FT;F T GLLogger;F T Modbus;F T TCPIP;T F _Statistics
|
||||||
End_Of_Serialized_Data 14
|
End_Of_Serialized_Data 14
|
||||||
7
|
7
|
||||||
0
|
0
|
||||||
|
@ -1542,10 +1573,7 @@ End_Of_Serialized_Data 14
|
||||||
16
|
16
|
||||||
0
|
0
|
||||||
17
|
17
|
||||||
1
|
0
|
||||||
14
|
|
||||||
ver=2: FT
|
|
||||||
End_Of_Serialized_Data 14
|
|
||||||
18
|
18
|
||||||
0
|
0
|
||||||
19
|
19
|
||||||
|
@ -4280,7 +4308,7 @@ END_OF_DOCK_INFO
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
1
|
1
|
||||||
859 382
|
1188 382
|
||||||
END_OF_DESKTOP_DATA
|
END_OF_DESKTOP_DATA
|
||||||
6
|
6
|
||||||
0 1 0 0 -1 -1 44 44 1544 1005
|
0 1 0 0 -1 -1 44 44 1544 1005
|
||||||
|
@ -4331,11 +4359,11 @@ End_Of_Object VGrMnBox 3
|
||||||
VDOLocalInfoStruct 3 Begin_Of_Object
|
VDOLocalInfoStruct 3 Begin_Of_Object
|
||||||
3
|
3
|
||||||
1
|
1
|
||||||
94
|
108
|
||||||
VDAOBus 4 Begin_Of_Object
|
VDAOBus 4 Begin_Of_Object
|
||||||
1
|
1
|
||||||
1
|
1
|
||||||
2
|
3
|
||||||
VDAOGBFunctionBlock 5 Begin_Of_Object
|
VDAOGBFunctionBlock 5 Begin_Of_Object
|
||||||
1
|
1
|
||||||
37
|
37
|
||||||
|
@ -4483,16 +4511,16 @@ VProgrammedNode 7 Begin_Of_Object
|
||||||
VConfigurationRoot 8 Begin_Of_Object
|
VConfigurationRoot 8 Begin_Of_Object
|
||||||
1
|
1
|
||||||
End_Of_Object VConfigurationRoot 8
|
End_Of_Object VConfigurationRoot 8
|
||||||
<VFileName V4 QL> 1 "socket.can"
|
<VFileName V4 QL> 1 "ClientUDP.can"
|
||||||
1
|
1
|
||||||
J:\HsKA\NB7\Bachelorthesis\CANoe\Modbus\socket.cbf
|
J:\HsKA\NB7\Bachelorthesis\CANoe\Modbus\ClientUDP.cbf
|
||||||
|
<< default >>
|
||||||
|
|
||||||
5
|
5
|
||||||
ECU 2
|
ClientUDP
|
||||||
ECU 2
|
ECU 2
|
||||||
EOF_TITLE_INFO
|
EOF_TITLE_INFO
|
||||||
|
<< default >>
|
||||||
1
|
1
|
||||||
0
|
0
|
||||||
1
|
1
|
||||||
|
@ -4521,7 +4549,7 @@ EOF_MBSSDATA
|
||||||
EOF_NLDATA
|
EOF_NLDATA
|
||||||
0
|
0
|
||||||
EOF_ASSEMBLYDATA
|
EOF_ASSEMBLYDATA
|
||||||
<VFileName V4 QL> 1 "socket.cbf"
|
<VFileName V4 QL> 1 "ClientUDP.cbf"
|
||||||
VIPBStackSetting 8 Begin_Of_Object
|
VIPBStackSetting 8 Begin_Of_Object
|
||||||
3
|
3
|
||||||
0
|
0
|
||||||
|
@ -4576,11 +4604,6 @@ NDebugger::VDebuggerHost 8 Begin_Of_Object
|
||||||
8
|
8
|
||||||
NDebugger::VFile 9 Begin_Of_Object
|
NDebugger::VFile 9 Begin_Of_Object
|
||||||
1
|
1
|
||||||
<VFileName V4 QL> 1 "socket.can"
|
|
||||||
0
|
|
||||||
End_Of_Object NDebugger::VFile 9
|
|
||||||
NDebugger::VFile 9 Begin_Of_Object
|
|
||||||
1
|
|
||||||
<VFileName V4 QL> 1 "Common.cin"
|
<VFileName V4 QL> 1 "Common.cin"
|
||||||
4
|
4
|
||||||
End_Of_Object NDebugger::VFile 9
|
End_Of_Object NDebugger::VFile 9
|
||||||
|
@ -4596,16 +4619,6 @@ NDebugger::VFile 9 Begin_Of_Object
|
||||||
End_Of_Object NDebugger::VFile 9
|
End_Of_Object NDebugger::VFile 9
|
||||||
NDebugger::VFile 9 Begin_Of_Object
|
NDebugger::VFile 9 Begin_Of_Object
|
||||||
1
|
1
|
||||||
<VFileName V4 QL> 1 "ModbusCommon.cin"
|
|
||||||
7
|
|
||||||
End_Of_Object NDebugger::VFile 9
|
|
||||||
NDebugger::VFile 9 Begin_Of_Object
|
|
||||||
1
|
|
||||||
<VFileName V4 QL> 1 "ModbusUdpCommon.cin"
|
|
||||||
8
|
|
||||||
End_Of_Object NDebugger::VFile 9
|
|
||||||
NDebugger::VFile 9 Begin_Of_Object
|
|
||||||
1
|
|
||||||
<VFileName V4 QL> 1 "TcpUdpCommon.cin"
|
<VFileName V4 QL> 1 "TcpUdpCommon.cin"
|
||||||
9
|
9
|
||||||
End_Of_Object NDebugger::VFile 9
|
End_Of_Object NDebugger::VFile 9
|
||||||
|
@ -4614,6 +4627,21 @@ NDebugger::VFile 9 Begin_Of_Object
|
||||||
<VFileName V4 QL> 1 "UdpCommon.cin"
|
<VFileName V4 QL> 1 "UdpCommon.cin"
|
||||||
10
|
10
|
||||||
End_Of_Object NDebugger::VFile 9
|
End_Of_Object NDebugger::VFile 9
|
||||||
|
NDebugger::VFile 9 Begin_Of_Object
|
||||||
|
1
|
||||||
|
<VFileName V4 QL> 1 "ClientUDP.can"
|
||||||
|
11
|
||||||
|
End_Of_Object NDebugger::VFile 9
|
||||||
|
NDebugger::VFile 9 Begin_Of_Object
|
||||||
|
1
|
||||||
|
<VFileName V4 QL> 1 "ModbusClientCommon.cin"
|
||||||
|
12
|
||||||
|
End_Of_Object NDebugger::VFile 9
|
||||||
|
NDebugger::VFile 9 Begin_Of_Object
|
||||||
|
1
|
||||||
|
<VFileName V4 QL> 1 "ModbusUdpClientCommon.cin"
|
||||||
|
13
|
||||||
|
End_Of_Object NDebugger::VFile 9
|
||||||
VNETStandaloneComponent 9 Begin_Of_Object
|
VNETStandaloneComponent 9 Begin_Of_Object
|
||||||
1
|
1
|
||||||
VNETControlBox 10 Begin_Of_Object
|
VNETControlBox 10 Begin_Of_Object
|
||||||
|
@ -4624,7 +4652,7 @@ VBoxRoot 12 Begin_Of_Object
|
||||||
1
|
1
|
||||||
3
|
3
|
||||||
1 -1 2 3 -1 -1 -8 -30 171 76 688 306
|
1 -1 2 3 -1 -1 -8 -30 171 76 688 306
|
||||||
Debugger - socket
|
Debugger - ClientUDP
|
||||||
1
|
1
|
||||||
|
|
||||||
MDI_DOCK_INFO_END
|
MDI_DOCK_INFO_END
|
||||||
|
@ -4690,7 +4718,7 @@ End_Of_Object VUniqueBox 11
|
||||||
1 -1 0 0 0 0 0 0 0 0 0 0
|
1 -1 0 0 0 0 0 0 0 0 0 0
|
||||||
0
|
0
|
||||||
End_Of_Object VNETControlBox 10
|
End_Of_Object VNETControlBox 10
|
||||||
114
|
132
|
||||||
APPDIR Vector.CANoe.Debugger.DLL
|
APPDIR Vector.CANoe.Debugger.DLL
|
||||||
Vector.CANoe.Debugger, Version=8.2.40.0, Culture=neutral, PublicKeyToken=null
|
Vector.CANoe.Debugger, Version=8.2.40.0, Culture=neutral, PublicKeyToken=null
|
||||||
Vector.CANoe.Debugger.DebuggerComponent
|
Vector.CANoe.Debugger.DebuggerComponent
|
||||||
|
@ -4732,17 +4760,35 @@ TypeRef:3
|
||||||
3
|
3
|
||||||
Int32
|
Int32
|
||||||
NrOfFiles
|
NrOfFiles
|
||||||
1
|
4
|
||||||
Int32
|
Int32
|
||||||
FileID0
|
FileID0
|
||||||
0
|
11
|
||||||
Int32
|
Int32
|
||||||
CurrentLine0
|
CurrentLine0
|
||||||
0
|
0
|
||||||
Int32
|
Int32
|
||||||
SelectedFileID
|
FileID1
|
||||||
|
4
|
||||||
|
Int32
|
||||||
|
CurrentLine1
|
||||||
0
|
0
|
||||||
Int32
|
Int32
|
||||||
|
FileID2
|
||||||
|
9
|
||||||
|
Int32
|
||||||
|
CurrentLine2
|
||||||
|
0
|
||||||
|
Int32
|
||||||
|
FileID3
|
||||||
|
10
|
||||||
|
Int32
|
||||||
|
CurrentLine3
|
||||||
|
0
|
||||||
|
Int32
|
||||||
|
SelectedFileID
|
||||||
|
11
|
||||||
|
Int32
|
||||||
NrOfWatchedVariables
|
NrOfWatchedVariables
|
||||||
0
|
0
|
||||||
String
|
String
|
||||||
|
@ -4828,7 +4874,139 @@ VSimulinkModelViewerConfiguration 7 Begin_Of_Object
|
||||||
End_Of_Object VSimulinkModelViewerConfiguration 7
|
End_Of_Object VSimulinkModelViewerConfiguration 7
|
||||||
1
|
1
|
||||||
0
|
0
|
||||||
2546375561
|
2490614275
|
||||||
|
0
|
||||||
|
NodeSignalPanelBustypeCount 0
|
||||||
|
End_Of_Object VSimulationNode 6
|
||||||
|
NULL
|
||||||
|
|
||||||
|
EndOfComment
|
||||||
|
0
|
||||||
|
1
|
||||||
|
End_Of_Object VDAOGBFunctionBlock 5
|
||||||
|
VDAOGBFunctionBlock 5 Begin_Of_Object
|
||||||
|
1
|
||||||
|
101
|
||||||
|
3
|
||||||
|
TABPredecessor:
|
||||||
|
52
|
||||||
|
TABSuccessor:
|
||||||
|
2
|
||||||
|
VSimulationNode 6 Begin_Of_Object
|
||||||
|
3
|
||||||
|
VProgrammedNode 7 Begin_Of_Object
|
||||||
|
4
|
||||||
|
VConfigurationRoot 8 Begin_Of_Object
|
||||||
|
1
|
||||||
|
End_Of_Object VConfigurationRoot 8
|
||||||
|
<VFileName V4 QL> 1 "ClientTCP.can"
|
||||||
|
1
|
||||||
|
J:\HsKA\NB7\Bachelorthesis\CANoe\Modbus\ClientTCP.cbf
|
||||||
|
<< default >>
|
||||||
|
|
||||||
|
5
|
||||||
|
ClientTCP
|
||||||
|
ECU 4
|
||||||
|
EOF_TITLE_INFO
|
||||||
|
<< default >>
|
||||||
|
1
|
||||||
|
0
|
||||||
|
1
|
||||||
|
1
|
||||||
|
0
|
||||||
|
1
|
||||||
|
0
|
||||||
|
1 0 2 0
|
||||||
|
SS_BEGIN_COMMON_INFO
|
||||||
|
1
|
||||||
|
4
|
||||||
|
Behavior
|
||||||
|
1
|
||||||
|
Buses
|
||||||
|
1
|
||||||
|
Misc
|
||||||
|
1
|
||||||
|
Timing
|
||||||
|
1
|
||||||
|
SS_END_COMMON_INFO
|
||||||
|
|
||||||
|
EOF_MBSSDATA
|
||||||
|
1
|
||||||
|
0 1
|
||||||
|
0
|
||||||
|
EOF_NLDATA
|
||||||
|
0
|
||||||
|
EOF_ASSEMBLYDATA
|
||||||
|
<VFileName V4 QL> 1 "ClientTCP.cbf"
|
||||||
|
VIPBStackSetting 8 Begin_Of_Object
|
||||||
|
3
|
||||||
|
0
|
||||||
|
1
|
||||||
|
VIPBAdapterSetting 9 Begin_Of_Object
|
||||||
|
4
|
||||||
|
1
|
||||||
|
9
|
||||||
|
02:68:EA:7A:15:00
|
||||||
|
End_Of_Serialized_Data 9
|
||||||
|
9
|
||||||
|
192.168.1.5
|
||||||
|
End_Of_Serialized_Data 9
|
||||||
|
9
|
||||||
|
255.255.255.0
|
||||||
|
End_Of_Serialized_Data 9
|
||||||
|
9
|
||||||
|
0.0.0.0
|
||||||
|
End_Of_Serialized_Data 9
|
||||||
|
1
|
||||||
|
VPersistentIFv4Address 10 Begin_Of_Object
|
||||||
|
1
|
||||||
|
VPersistentIFAddress 11 Begin_Of_Object
|
||||||
|
1
|
||||||
|
VPersistentAddress 12 Begin_Of_Object
|
||||||
|
1
|
||||||
|
End_Of_Object VPersistentAddress 12
|
||||||
|
End_Of_Object VPersistentIFAddress 11
|
||||||
|
10
|
||||||
|
192.168.1.5
|
||||||
|
End_Of_Serialized_Data 10
|
||||||
|
10
|
||||||
|
255.255.255.0
|
||||||
|
End_Of_Serialized_Data 10
|
||||||
|
End_Of_Object VPersistentIFv4Address 10
|
||||||
|
0
|
||||||
|
1
|
||||||
|
11
|
||||||
|
Ethernet
|
||||||
|
1
|
||||||
|
0
|
||||||
|
0
|
||||||
|
End_Of_Object VIPBAdapterSetting 9
|
||||||
|
0
|
||||||
|
1
|
||||||
|
0
|
||||||
|
End_Of_Object VIPBStackSetting 8
|
||||||
|
7
|
||||||
|
NULL
|
||||||
|
End_Of_Serialized_Data 7
|
||||||
|
End_Of_Object VProgrammedNode 7
|
||||||
|
0
|
||||||
|
0
|
||||||
|
Startdelay 0 0 0
|
||||||
|
Jitter 0 0 1 0 0 0 0
|
||||||
|
0
|
||||||
|
EOF_NLDATA
|
||||||
|
3
|
||||||
|
VSimulinkModelViewerConfiguration 7 Begin_Of_Object
|
||||||
|
2
|
||||||
|
<VFileName V4 QL> 1 ""
|
||||||
|
<VFileName V4 QL> 1 ""
|
||||||
|
<VFileName V4 QL> 1 ""
|
||||||
|
150
|
||||||
|
0
|
||||||
|
End_Of_Object VSimulinkModelViewerConfiguration 7
|
||||||
|
1
|
||||||
|
0
|
||||||
|
2653277962
|
||||||
0
|
0
|
||||||
NodeSignalPanelBustypeCount 0
|
NodeSignalPanelBustypeCount 0
|
||||||
End_Of_Object VSimulationNode 6
|
End_Of_Object VSimulationNode 6
|
||||||
|
@ -5063,7 +5241,7 @@ VDAOGBFunctionBlock 5 Begin_Of_Object
|
||||||
TABPredecessor:
|
TABPredecessor:
|
||||||
46
|
46
|
||||||
TABSuccessor:
|
TABSuccessor:
|
||||||
2
|
101
|
||||||
VSimulationNode 6 Begin_Of_Object
|
VSimulationNode 6 Begin_Of_Object
|
||||||
3
|
3
|
||||||
VProgrammedNode 7 Begin_Of_Object
|
VProgrammedNode 7 Begin_Of_Object
|
||||||
|
@ -5197,7 +5375,7 @@ VDAOGBFunctionBlock 5 Begin_Of_Object
|
||||||
2
|
2
|
||||||
0
|
0
|
||||||
TABPredecessor:
|
TABPredecessor:
|
||||||
52
|
101
|
||||||
TABSuccessor:
|
TABSuccessor:
|
||||||
0
|
0
|
||||||
VCardConf 6 Begin_Of_Object
|
VCardConf 6 Begin_Of_Object
|
||||||
|
@ -5215,7 +5393,7 @@ NULL
|
||||||
End_Of_Object VDOLocalInfoStruct 3
|
End_Of_Object VDOLocalInfoStruct 3
|
||||||
0.000000
|
0.000000
|
||||||
0 0
|
0 0
|
||||||
1 1 0 59420 1 233 1 2882400001 419 652 305 689 2882400002 0 0 0 0 0 0 1 2882400001 1278 1278 307 307 2882400002 0 0 0 347718376 348326584 348467900 3
|
1 1 0 59420 1 233 1 2882400001 90 323 305 689 2882400002 0 0 0 0 0 0 1 2882400001 1278 1278 307 307 2882400002 0 0 0 361415696 361661552 7670396 3
|
||||||
SS_BEGIN_COMMON_INFO
|
SS_BEGIN_COMMON_INFO
|
||||||
1
|
1
|
||||||
0
|
0
|
||||||
|
@ -5227,7 +5405,7 @@ Ethernet
|
||||||
11
|
11
|
||||||
1
|
1
|
||||||
1
|
1
|
||||||
348555200 1 0 0 0 1 1 0 0 0 2000 1
|
7639664 1 0 0 0 1 1 0 0 0 2000 1
|
||||||
SS_BEGIN_COMMON_INFO
|
SS_BEGIN_COMMON_INFO
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
|
@ -5336,7 +5514,7 @@ End_Of_Serialized_Data 2
|
||||||
End_Of_Object VWriteBox 2
|
End_Of_Object VWriteBox 2
|
||||||
VWinStore 2 Begin_Of_Object
|
VWinStore 2 Begin_Of_Object
|
||||||
1
|
1
|
||||||
22 2 3 -32088 -32000 -1 -1 -10088 -10000 -9070 -9233
|
22 2 3 -1 -1 -1 -1 -10088 -10000 -9070 -9233
|
||||||
End_Of_Child_List
|
End_Of_Child_List
|
||||||
End_Of_Object VWinStore 2
|
End_Of_Object VWinStore 2
|
||||||
VWinStore 2 Begin_Of_Object
|
VWinStore 2 Begin_Of_Object
|
||||||
|
@ -5627,8 +5805,10 @@ SymbSelHeaderMgrBegin
|
||||||
SymbSelHeaderMgrEnd
|
SymbSelHeaderMgrEnd
|
||||||
End
|
End
|
||||||
Begin
|
Begin
|
||||||
3 0 0
|
3 0 7
|
||||||
0
|
1
|
||||||
|
Systemvariablen
|
||||||
|
( 1 ( 1 ( 0 ) 0 ) 0 )
|
||||||
SymbSelHeaderMgrBegin
|
SymbSelHeaderMgrBegin
|
||||||
1 4
|
1 4
|
||||||
0 1 200 0 0
|
0 1 200 0 0
|
||||||
|
@ -5653,7 +5833,7 @@ FiltersEnd
|
||||||
END_OF_WORKSPACE_MEMBER_DATA
|
END_OF_WORKSPACE_MEMBER_DATA
|
||||||
END_OF_WORKSPACE_MEMBER
|
END_OF_WORKSPACE_MEMBER
|
||||||
1
|
1
|
||||||
1
|
0
|
||||||
0
|
0
|
||||||
|
|
||||||
END_OF_WORKSPACE_DATA
|
END_OF_WORKSPACE_DATA
|
||||||
|
|
Loading…
Reference in a new issue