Strage channels problems
adys
Posts: 395
Hi all
I am having a strange problem to turn off channels.
I have a module that turn off some buttons.
In one system instance when sending off commands, it ok.
In other system instance, its not working..
even when I put the commands (for test) like this:
off[10007:20:6, 17]
off[10007:20:6, 17]
off[10007:20:6, 23]
off[10007:20:6, 24]
its not working.
using "control a device" from netlinx 2.7 is working good, with the same parameters exactly.
Any idea?
I am sitting on this few hours and cant see the problem...
( other buttons are turn off as they should, only those buttons are not , maybe its connecting to the port 20 from this module?)
Thanks for any help
Ady.
I am having a strange problem to turn off channels.
I have a module that turn off some buttons.
In one system instance when sending off commands, it ok.
In other system instance, its not working..
even when I put the commands (for test) like this:
off[10007:20:6, 17]
off[10007:20:6, 17]
off[10007:20:6, 23]
off[10007:20:6, 24]
its not working.
using "control a device" from netlinx 2.7 is working good, with the same parameters exactly.
Any idea?
I am sitting on this few hours and cant see the problem...
( other buttons are turn off as they should, only those buttons are not , maybe its connecting to the port 20 from this module?)
Thanks for any help
Ady.
0
Comments
Trying to send any off command to this specific port , from this module , is working only in one specific instance of this module in a specific system.
From 2 other instances from 2 different systems, its not working.
I have no idea, everything else is working good.
I notice that even when I am removing the module from the module list in a specific system, the module still works and compile (taking it from other place?) - first time that I see that it can work like that.
I this can cause any problem?
Anyone?
Thanks
Ady.
Everything else is working ok, just trying to work with this port is not working... even not when I put a direct address....
I tested now, and it looks like every module can turn off only the TP that belong to the system that runing on the same master...
But only on port 20!
all the rest working ok and all the systems talking with each other (url list )
So here's the question - is the TP that you're trying to control physically defined in the define_device list of the master that you are using?
SET_VIRTUAL_PORT_COUNT
You have to define that your device can have that many ports first. By default not that many ports are available for a device.
Also,
SET_VIRTUAL_CHANNEL_COUNT
SET_VIRTUAL_LEVEL_COUNT
Are you sure?
I did it many time before, it is working, I am 99% sure.
Second, I made a global list and include it in my module for the devices and it didn't help.
dthorson, I am using SET_VIRTUAL_PORT_COUNT, and including this port
Somthing is wrong.
It started with upgrading yesterday to version 2.7, I hope its not connected.
When I compile my system with the module, somtimes the changes are not runing, cause I didn't load all systems...
I have to compile all systems and load them, only then its working ok.
I solved the problem with a message to the central master that holds the url list and its working, but I don't feel good with this module
even more strange, I removed the module file from all! systems, rename the file, and compile all the project.
Everything is compiling and runing , and I don't understand how...
Where its taking the module from???
There were several problems with 2.7
I finally bailed out on it and went back to 2.6. I'll wait for 2.8 or 3.0 or whatever.
Of course I would always declare the dev just so I know what I'm looking at.
Where can I find it?
only from support or there is a hidden link anywhere?
Thanks
Thanks, I saw this before.
I sent them a mail Yesterday, and I am still waiting...
update - I found 2.6 install file on one of our computers, I will check update if that solve the problem.
It's not though. The local master makes a hidden virtual device, and the master-to-master communications just sync the device and the virtual. You need to declare your device from the other master in the local program. The virtual port and level counts also apply; I had a system with panels that connected to one master, but were declared on another, and the remote master could not address over level eight until I used SET_VIRTUAL_LEVEL_COUNT on the remote master.
You can use the direct D:P:S reference just fine....provided that you made a device declaration in the define device list. That tells the master that the remote device "exists" and then it can be referenced.
It's best not to. If it's defined in the program, use the name so you don't have to rip your hair out trying to figure why it doesn't work when the device number gets changed, and you forgot there is a direct reference.
I agree - it would be silly to use the D:P:S reference when you have the name of the device declared already. But technically it would work, not advisable to do it that way though.
Thanks for the help,
Ady
I guess the act of defining a device creates the handling buffers and queues that are required for each device to function with event tables and event handlers. There's definitely something going on that's invisible to our eyes.