Connecting CitectSCADA v7.2 to M340 through OFS

Saif

Member
Join Date
Nov 2011
Location
Amman
Posts
3
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 o_O

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
 
In the io server network setup you must use the ip address (or name) of the citect pc (not 127.0.0.1 that is the local host address)
 
Last edited:
Problem with M340/BMX AMO 0410

Dear All,
I'm new in PLC's and I have a problem with Modicon M340.I would like to attach analog output modul(BMX AMO 0410) to rack.So far so good.But when I open my Unity PRO XL 4.1. I can't find this modul(BMX AMO 0410) there is only BMX AMO 0210,I think.

Can you help me?
Thank
 
Thank you GeoffC.Yesterday I installed Unity Pro XL 5.0 but I do not have time to check the result.Also I spoke with my colleague and he confirm the same.

Now I will try to make some modifications in the program to read these two signals on this module.Any suggestions how to do this?
 

Similar Topics

Good Day to all of you, this is my first post, i will try to explain as best as possible, english is not my natural language. I am performing an...
Replies
0
Views
54
I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
99
Hello, I was looking to store some values from our FactoryTalk Application using Datalog to a MariaDB. I see there is quite a bit of documentation...
Replies
1
Views
105
I haven't encountered problems connecting to a PLC through VM Ware but I am with this particular machine. I'm running Windows 7 on a Windows 10...
Replies
8
Views
237
Hi, I want to build a demo station to test devices and programs and I need some help with it. I want to connect GuardLogix, Piltzmulti and...
Replies
1
Views
152
Back
Top Bottom