06-29-2009 03:20 PM
First time I've used Lookout so I'm lost
I've created a simple program to read a few registers from our controller using devicenet but for the life of me I can't figure out how to write to some registers in lookout.
I have an object with all the different data types but I don't know how to write to a few registers.
I have a NI DNET card and I can read just fine. I have 20 bytes as outputs and 22 bytes as inputs, so far I can only access the inputs.
SOOOO confused
Ron
06-30-2009 04:58 AM
For example you want to write SINT0. In Object Explorer, right click on devicenet object's "SINT0" and drag onto the panel, you will be asked to create a pot or switch. Control the pot and write the data.
Another way is to create a pot object first. In Object Explorer, right click on the devicenet object, select Edit Connections... Click the datamember, such as SINT0, you can modify to SINTx, and click "Select". The yellow field is where you input the expression. You can browse and select an existing pot. Then the connection will be SINTx = Pot1. Click Accept to confirm the connection. After you create the connection, the devicenet object will write the pot's value to device.
06-30-2009 08:35 AM
OK thanks I'm able to make an output now.
How can I point it to my output assembly (instance 150), when I made the pot it is by default pointed to my input assembly(instance 100).
Ron
07-01-2009 01:46 AM
I don't understand why the pot is by default pointed to the input. Actually you can create a pot that is connected to nothing. And then you create the connection in object's "Edit connections..."