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 » SUBSCRIPE can not convert "ANY" to "ANY_INT"
SUBSCRIPE can not convert "ANY" to "ANY_INT" [message #1840328] Mon, 12 April 2021 16:21 Go to next message
Thomas Wagner is currently offline Thomas WagnerFriend
Messages: 10
Registered: April 2021
Junior Member
This is my application:
index.php/fa/40325/0/

The application toggles between two phases: "PHASE_0" and "PHASE_1".
"PHASE_0" :
    NORTH.out == SOUTH.out == 1
    EAST.out == WEST.out == 0

"PHASE_1" :
    NORTH.out == SOUTH.out == 0
    EAST.out == WEST.out == 1


I used the following types:
- PHASE_CNT = INT2INT
- PHASE_1_INT = INT2INT
- PHASE_1_ADD = F_ADD
- PHASE_1_INT = INT2INT

This works fine running on one runtime.

But spreading it on multiple systems using PUBLISH_2 and SUBSCRIBE_2 I have a problem on subscribing:
I can't connect e.g. "SUBSCRIBE_2.RD1 ---> NORTH.IN1":index.php/fa/40326/0/
Re: SUBSCRIPE can not convert "ANY" to "ANY_INT" [message #1840341 is a reply to message #1840328] Mon, 12 April 2021 20:18 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1213
Registered: January 2014
Senior Member
the problem is that SUBSCRIBE in its current from is not allowed to determine the datatype only from the data packet information but also from where it is connected to. In 4diac IDE 1.13.1 and earlier we therefore have not allowed connections between the any types. We relaxed that in the upcoming 4diac IDE 1.14.0. However this will just result in run-time problems. In your case you need to insert an FB that clearly defines the data type (for you INT) on receiver side as well.
Re: SUBSCRIPE can not convert "ANY" to "ANY_INT" [message #1840375 is a reply to message #1840328] Tue, 13 April 2021 13:07 Go to previous message
Thomas Wagner is currently offline Thomas WagnerFriend
Messages: 10
Registered: April 2021
Junior Member
Placing a "UNIT2UINT" converter before "NORTH.IN1/SOUTH.IN1/..." and a "INT2INT" before "...IN" does solve my problem.

Thank you for the hint.
Previous Topic:Dynamic Type Loading
Next Topic:What's the difference between subapp and compsite fb?
Goto Forum:
  


Current Time: Sun May 16 16:42:30 GMT 2021

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

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

Back to the top