Skip to main content



      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 12:21 Go to next message
Eclipse UserFriend
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 16:18 Go to previous messageGo to next message
Eclipse UserFriend
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 09:07 Go to previous message
Eclipse UserFriend
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: Thu Jul 10 23:30:26 EDT 2025

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

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

Back to the top