Dear All,
I've been struggling for a week to connect CitectSCADA v7.2 to M340 PLC through OFS and things aren't working out
Here's the setup:
I programmed a P34 2020 PLC with a simple ladder diagram using Unity Pro XL and I exported all variables (7 bool/ebool) with right-click on "Variable & FB instances" -> Export.
The PLC is connected to the PC through Ethernet.
Using OFS Configuration tool I made an Alias for the PLC, and then checked the OFS using the OFS Client, no errors was shown in the OFS diagnostic window and I could read and write on variables through the client. Tried this using STU and XVM files for alias.
In CitectSCADA, I did the following: New project -> new cluster -> new address (local 127.0.0.1) -> new IO server, used the local address -> Express Wizard and chose the following options: External I/O Device, OFSOPC, Address is Alias name, didn't check link, -> finish -> change address in Board to 1000 (same rate used in the OFS Client).
Then I built the project and started Computer Setup Wizard: Server and Control Client (didn't check Multi-Process), Stand alone, entered password.
Now I couldn't import tags (Tools > Import tags) no matter what options I choose, and if I run the project (I made a simple graphics page) here's the diagnostic window:
"
03/12 13:07:53 921ms : New connection established : CnxNumber = 2 : PC2\USER1 : Total Client 1
03/12 13:07:56 359ms : Creating group PLC_GROUP_1 OK for client 2 : PC2\USER1
03/12 13:07:56 375ms : Creating group PLC_GROUP_TEMP OK for client 2 : PC2\USER1
03/12 13:07:56 390ms : Creating group STATUS_GROUP OK for client 2 : PC2\USER1
03/12 13:07:56 718ms : Creating group PLC_GROUP_2 OK for client 2 : PC2\USER1
03/12 13:07:56 781ms : Creating group PLC_GROUP_3 OK for client 2 : PC2\USER1
03/12 13:07:57 250ms : UNITY Device : Started Application Dynamic Consistency Check OK for MBT:192.168.0.3
03/12 13:07:57 390ms : AnalyzeIdentAnswer() : update max pending req : 4
03/12 13:07:57 406ms : NETMAN : Identify OK for MBT:192.168.0.3
03/12 13:07:57 484ms : GetComInfo OK for MBT:192.168.0.3
03/12 13:07:57 546ms : NETMAN : PDU size for MBT:192.168.0.3 : 1021 bytes
03/12 13:07:57 640ms : NETMAN : GetObjectsAddr OK for MBT:192.168.0.3
03/12 13:07:57 687ms : NETMAN : GetTimeStamp OK for MBT:192.168.0.3
03/12 13:07:57 687ms : NETMAN : GetApplicationInfo OK for MBT:192.168.0.3
03/12 13:07:57 890ms : NETMAN : GetObjectsAddr OK for MBT:192.168.0.3
03/12 13:07:57 937ms : NETMAN : GetTimeStamp OK for MBT:192.168.0.3
03/12 13:07:57 937ms : VM : End of Test or ReloadDatabase !
03/12 13:07:58 140ms : VM : Validate Definition Error for MBT:192.168.0.3/U #PLCQualStatus
03/12 13:07:58 140ms : Error creating Item #PLCQualStatus (group STATUS_GROUP)
03/12 13:09:10 046ms : VM : Validate Definition Error for MBT:192.168.0.3/U #PLCQualStatus
03/12 13:09:10 046ms : Error creating Item #PLCQualStatus (group STATUS_GROUP)
03/12 13:09:20 062ms : VM : Validate Definition Error for MBT:192.168.0.3/U #PLCQualStatus
03/12 13:09:20 062ms : Error creating Item #PLCQualStatus (group STATUS_GROUP)"
And of course the rectangles associated to tags are hashed.
Finally if I use MODBUS/TCP Ethernet with fastlinx in Express setup and put the PLC address, I was able to import tags but they wouldn't be read or written at run.
Any help is greatly appreciated! Thanks in advance
Saif
I've been struggling for a week to connect CitectSCADA v7.2 to M340 PLC through OFS and things aren't working out
Here's the setup:
I programmed a P34 2020 PLC with a simple ladder diagram using Unity Pro XL and I exported all variables (7 bool/ebool) with right-click on "Variable & FB instances" -> Export.
The PLC is connected to the PC through Ethernet.
Using OFS Configuration tool I made an Alias for the PLC, and then checked the OFS using the OFS Client, no errors was shown in the OFS diagnostic window and I could read and write on variables through the client. Tried this using STU and XVM files for alias.
In CitectSCADA, I did the following: New project -> new cluster -> new address (local 127.0.0.1) -> new IO server, used the local address -> Express Wizard and chose the following options: External I/O Device, OFSOPC, Address is Alias name, didn't check link, -> finish -> change address in Board to 1000 (same rate used in the OFS Client).
Then I built the project and started Computer Setup Wizard: Server and Control Client (didn't check Multi-Process), Stand alone, entered password.
Now I couldn't import tags (Tools > Import tags) no matter what options I choose, and if I run the project (I made a simple graphics page) here's the diagnostic window:
"
03/12 13:07:53 921ms : New connection established : CnxNumber = 2 : PC2\USER1 : Total Client 1
03/12 13:07:56 359ms : Creating group PLC_GROUP_1 OK for client 2 : PC2\USER1
03/12 13:07:56 375ms : Creating group PLC_GROUP_TEMP OK for client 2 : PC2\USER1
03/12 13:07:56 390ms : Creating group STATUS_GROUP OK for client 2 : PC2\USER1
03/12 13:07:56 718ms : Creating group PLC_GROUP_2 OK for client 2 : PC2\USER1
03/12 13:07:56 781ms : Creating group PLC_GROUP_3 OK for client 2 : PC2\USER1
03/12 13:07:57 250ms : UNITY Device : Started Application Dynamic Consistency Check OK for MBT:192.168.0.3
03/12 13:07:57 390ms : AnalyzeIdentAnswer() : update max pending req : 4
03/12 13:07:57 406ms : NETMAN : Identify OK for MBT:192.168.0.3
03/12 13:07:57 484ms : GetComInfo OK for MBT:192.168.0.3
03/12 13:07:57 546ms : NETMAN : PDU size for MBT:192.168.0.3 : 1021 bytes
03/12 13:07:57 640ms : NETMAN : GetObjectsAddr OK for MBT:192.168.0.3
03/12 13:07:57 687ms : NETMAN : GetTimeStamp OK for MBT:192.168.0.3
03/12 13:07:57 687ms : NETMAN : GetApplicationInfo OK for MBT:192.168.0.3
03/12 13:07:57 890ms : NETMAN : GetObjectsAddr OK for MBT:192.168.0.3
03/12 13:07:57 937ms : NETMAN : GetTimeStamp OK for MBT:192.168.0.3
03/12 13:07:57 937ms : VM : End of Test or ReloadDatabase !
03/12 13:07:58 140ms : VM : Validate Definition Error for MBT:192.168.0.3/U #PLCQualStatus
03/12 13:07:58 140ms : Error creating Item #PLCQualStatus (group STATUS_GROUP)
03/12 13:09:10 046ms : VM : Validate Definition Error for MBT:192.168.0.3/U #PLCQualStatus
03/12 13:09:10 046ms : Error creating Item #PLCQualStatus (group STATUS_GROUP)
03/12 13:09:20 062ms : VM : Validate Definition Error for MBT:192.168.0.3/U #PLCQualStatus
03/12 13:09:20 062ms : Error creating Item #PLCQualStatus (group STATUS_GROUP)"
And of course the rectangles associated to tags are hashed.
Finally if I use MODBUS/TCP Ethernet with fastlinx in Express setup and put the PLC address, I was able to import tags but they wouldn't be read or written at run.
Any help is greatly appreciated! Thanks in advance
Saif