Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Testing Wago 750-400 function block
Testing Wago 750-400 function block [message #1741037] Mon, 22 August 2016 13:44 Go to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
I am trying to test Wago 750-400 function block on 4DIAC-IDE while my forte is running on Wago PFC terminal. I am getting the following error

ERROR: GetExclusiveLock(): Another instance is running!
ERROR: dal_ScanDevices(): DAL is not opened! Call dal_Open() first.
ERROR: adi_GetDeviceList(): DAL is not opened! Call dal_Open() first.
ERROR: adi_CloseDevice(): DAL is not opened! Call dal_Open() first.
DEBUG: ../src/dal_system.c:820:dal_Close():
Segmentation fault

What is causing this. i coudlnt understand
Re: Testing Wago 750-400 function block [message #1741041 is a reply to message #1741037] Mon, 22 August 2016 14:03 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 23
Registered: August 2016
Junior Member
Hi,
Could you please tell,
1) which 750-400 function block are you referring to?
2) how you are downloading your application no to the device?

The 750-400 function blocks which were available before is not used any more. You can now read a digital input with a IX, function block with parameter in the form "slot.channel"(without quotes). And from the error message it looks like a Wago API related error, which is not supposed to be visible while downloading your 4diac application to the device, following the procedure in the help files.

Regards
Milan

Re: Testing Wago 750-400 function block [message #1741047 is a reply to message #1741041] Mon, 22 August 2016 14:19 Go to previous messageGo to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
i am using Wago 750_400 function block available in wagokbus in 4DIAC IDE RC3 and testing it with FB Tester.
Re: Testing Wago 750-400 function block [message #1741056 is a reply to message #1741047] Mon, 22 August 2016 14:44 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 23
Registered: August 2016
Junior Member
Hi,

Please download 4diac-IDE version 1.8.x from http://www.eclipse.org/4diac/en_dow.php and use the IX blocks available in type library forlder "io". An example of how to use this IX blocks can be found in 4DIAC Documentation/FORTE/4DIAC on other Platforms/Building FORTE for Raspberry- SPS. Also please make sure that you always kill codesys instance running before downloading the application.
Re: Testing Wago 750-400 function block [message #1741057 is a reply to message #1741056] Mon, 22 August 2016 14:45 Go to previous messageGo to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
okay Thank You
Re: Testing Wago 750-400 function block [message #1741059 is a reply to message #1741057] Mon, 22 August 2016 15:01 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 23
Registered: August 2016
Junior Member
Hi,

Just to make sure no error occur in future, please download the FORTE source as described here, http://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git, and follows the help file for buiding executable for Wago as given in web page. The source( 1.8.x ) updated latest is compatible with 4diac IDE 1.8.x and supports IX, QX blocks. Now enjoy Wink

Cheers
Milan
Re: Testing Wago 750-400 function block [message #1741064 is a reply to message #1741059] Mon, 22 August 2016 15:28 Go to previous messageGo to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
okay thank you

[Updated on: Mon, 22 August 2016 15:33]

Report message to a moderator

Re: Testing Wago 750-400 function block [message #1741089 is a reply to message #1741064] Mon, 22 August 2016 23:15 Go to previous messageGo to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
My 750-400 input function block is working. i wasnt killing plclinux_rt. I want to ask what value should i give at the SLOT input of the function block. It says that it takes USINT data type. so what value should i give?
Re: Testing Wago 750-400 function block [message #1741108 is a reply to message #1741089] Tue, 23 August 2016 07:22 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 23
Registered: August 2016
Junior Member
Hi,

1) Please follow the procedure explained in http://www.eclipse.org/4diac/en_help.php, Tutorials/4DIAC Framework/X+3 Tutorial for learning how to create an application. Use the same method here for creating an application with wago IX,QX blocks
2) For your reference I have created a sample application with Wago PFC IX, QX blocks. Here my 750-400 digital input card is in slot 0 and 750-530 digital output card is in slot 1. The inputs from channel 0.0 and 0.1 are driving the output channels 1.4 and 1.2. See attachment WagoKBus SampleApp.png

3) Before deploying the application, make sure that the codesys instance is killed and then start forte, from where you created your executable. I have created a screen shot of my putty client doing the same. See attachment putty.png

4) Download and test the application

Note: The sample application is created with my hardware setup. This may change based on your set up.
Re: Testing Wago 750-400 function block [message #1741109 is a reply to message #1741089] Tue, 23 August 2016 07:29 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 615
Registered: January 2014
Senior Member
Hi,

I just want to repeat and emphasize Milan's comment: Please don'T use the 750-400 function block. This is old code that will not be available in future releases. Please use the IX FB for digital inputs and QX block for digital outputs.

BR,
Alois
Re: Testing Wago 750-400 function block [message #1741158 is a reply to message #1741037] Tue, 23 August 2016 12:00 Go to previous messageGo to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
When i use FB test with input IX i get an error . with 750-400 it was showing an output. i have attached the images. i have killed codesys instance and my forte was running
Re: Testing Wago 750-400 function block [message #1741160 is a reply to message #1741158] Tue, 23 August 2016 12:05 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 615
Registered: January 2014
Senior Member
What FORTE version have you used. IX/QX requires the latest FORTE 1.8.0. https://sourceforge.net/projects/fordiac/files/FORTE/FORTE%201.8/
Re: Testing Wago 750-400 function block [message #1741161 is a reply to message #1741160] Tue, 23 August 2016 12:13 Go to previous messageGo to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
i have used forte 1.8M1. it is old release?
Re: Testing Wago 750-400 function block [message #1741172 is a reply to message #1741161] Tue, 23 August 2016 13:24 Go to previous messageGo to next message
Milan Vathoopan is currently offline Milan VathoopanFriend
Messages: 23
Registered: August 2016
Junior Member
Please check the right version and confirm the date modified for latest release. See attached download link in sourceforge.
  • Attachment: forte.png
    (Size: 36.49KB, Downloaded 130 times)
Re: Testing Wago 750-400 function block [message #1741528 is a reply to message #1741037] Thu, 25 August 2016 15:59 Go to previous messageGo to next message
Muhammad Imran is currently offline Muhammad ImranFriend
Messages: 12
Registered: August 2016
Junior Member
i have used the latest Forte version to generate forte executable and it is working with IX function block now. I would like to ask one more thing. can i want to use PiFace of Raspberry Pi as the output instead of 750-530 and the function block diagram for this arrangement remain similar to what you sent?
Re: Testing Wago 750-400 function block [message #1741568 is a reply to message #1741528] Thu, 25 August 2016 21:13 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 615
Registered: January 2014
Senior Member
I great that it is working for you.

You can use the IX and QX blocks for digital IOs on all of our supported platforms. The only thing that changes is the value for the PARAMS input.

Unfortunately is PiFace currently not supported. However we are working on it and hopfully have it soon.
Previous Topic:Stop the running CoDeSys instance (kill plclinux_rt)
Next Topic:SET_POINT in FB_CTRL_PID Function Block
Goto Forum:
  


Current Time: Thu Aug 16 16:31:36 GMT 2018

Powered by FUDForum. Page generated in 0.02396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top