Hardware:
CPU: 319-3 PN/DP
CP: 343-1 (6GK7 343-1EX30-0XE0)
Hi,
I have my CP343-1 (IP:10.100.190.70) connected to a switch (10.100.190.1) which then connects to a VLAN with the PC that I want to send data on that VLAN. The PC has IP address: 192.168.100.182 with a gateway of 192.168.1.1.
Now what I want to do is send a block of 230 bytes of data, DB610, to the CP343-1 so it is available to be seen by the PC. The PC side is being looked after by IT so they will poll the CP343-1 to get the data. But I only want them to be able to access the one DB that I specify and nothing else on the CPU.
I have set up my connection (TCP) with my CP343-1 on one subnet (LAN1) and the PC as "Other station" on another subnet (LAN2). Should I maybe use "unspecified" in stead of other station?
cp343-1:
IP: 10.100.190.70
Subnet mask: 255.255.255.0
Use router: 10.100.190.1
Other station:
IP: 192.168.100.182
Subnet mask: 255.255.0.0
Use router: 192.168.1.1
I have in my FC610 code a AG_SEND block with the follwing parameters:
ACT:=M 10.7 (2 sec pos pulse)
ID:=1
LADDR:=W#16#0110 (272 in dec)
SEND := P#db610.dbx0.0 byte 230
LEN:=230
DONE:="DB610_InfoplusComms".AG_SEND_DONE
ERROR:="DB610_InfoplusComms".AG_SEND_ERROR
STATUS:="DB610_InfoplusComms".AG_SEND_STATUS
This results in an error status 8183H "No configuration or the ISO/TCP service has not yet started on the Ethernet CP." but they are still able to access DB610, in fact they are able to access every DB on the CPU, even if I don't call FC 610.
When I go to Special Diagnostics of the CP343-1, under the connection tab for my connection "TCP Connection_1" it has "Connection Status: Closed"
Because this is not 2-way comms between, say, two CPU's am I correct in the assumtion that I don't need a AG_RCV block in my code also?
Also, can someone shed some light on what exactly the AG_SEND block does? Does it send the DB610 from the CPU to the CP343-1? And if so, is it then available to be seen from the PC? If so, it is still called DB610 etc?
How do you limit access to one DB?
I hope I have made myself clear. If you need any more info please ask.
Thanks in advance.
CPU: 319-3 PN/DP
CP: 343-1 (6GK7 343-1EX30-0XE0)
Hi,
I have my CP343-1 (IP:10.100.190.70) connected to a switch (10.100.190.1) which then connects to a VLAN with the PC that I want to send data on that VLAN. The PC has IP address: 192.168.100.182 with a gateway of 192.168.1.1.
Now what I want to do is send a block of 230 bytes of data, DB610, to the CP343-1 so it is available to be seen by the PC. The PC side is being looked after by IT so they will poll the CP343-1 to get the data. But I only want them to be able to access the one DB that I specify and nothing else on the CPU.
I have set up my connection (TCP) with my CP343-1 on one subnet (LAN1) and the PC as "Other station" on another subnet (LAN2). Should I maybe use "unspecified" in stead of other station?
cp343-1:
IP: 10.100.190.70
Subnet mask: 255.255.255.0
Use router: 10.100.190.1
Other station:
IP: 192.168.100.182
Subnet mask: 255.255.0.0
Use router: 192.168.1.1
I have in my FC610 code a AG_SEND block with the follwing parameters:
ACT:=M 10.7 (2 sec pos pulse)
ID:=1
LADDR:=W#16#0110 (272 in dec)
SEND := P#db610.dbx0.0 byte 230
LEN:=230
DONE:="DB610_InfoplusComms".AG_SEND_DONE
ERROR:="DB610_InfoplusComms".AG_SEND_ERROR
STATUS:="DB610_InfoplusComms".AG_SEND_STATUS
This results in an error status 8183H "No configuration or the ISO/TCP service has not yet started on the Ethernet CP." but they are still able to access DB610, in fact they are able to access every DB on the CPU, even if I don't call FC 610.
When I go to Special Diagnostics of the CP343-1, under the connection tab for my connection "TCP Connection_1" it has "Connection Status: Closed"
Because this is not 2-way comms between, say, two CPU's am I correct in the assumtion that I don't need a AG_RCV block in my code also?
Also, can someone shed some light on what exactly the AG_SEND block does? Does it send the DB610 from the CPU to the CP343-1? And if so, is it then available to be seen from the PC? If so, it is still called DB610 etc?
How do you limit access to one DB?
I hope I have made myself clear. If you need any more info please ask.
Thanks in advance.