Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Zetron data members

I am trying to read the registers from a Zetron 1708 RTU.  The registers are for the time period of the status input 1, they are registers 42014, 42015, and 42016.  According to Zetron, they all have to be read together.  I have been unsuccessful at reading them.  When I put an expression in to read any of them, I get a modbus Exception Response 2, illegal data address, function code 3, etc.  The program also stops polling that RTU until I delete the expression from it.  The system communicates fine with this RTU using Modbus protocol to a Zetron 1700 controller, which communicates to the Zetron 1708 RTU.  Any ideas? 

 

 

Werner Knight
0 Kudos
Message 1 of 14
(6,537 Views)

What if you create three expressions to read all of 3 registers at the same time?

Ryan Shi
National Instruments
0 Kudos
Message 2 of 14
(6,534 Views)

I tried to do that, but it did not work, or I did not create a proper expression.

Werner

Werner Knight
0 Kudos
Message 3 of 14
(6,530 Views)

Log the Modbus communication data on the serial port. Select Option->Serial port, enable the "Diagnostic file settings" of the port you use, input a log file path such as c:\log.txt, check "Value in HEX" and Accept.

 

Create expressions to read the data. And post the log file here.

 

Can you ask Zetron for the definition of "they all have to be read together"? I'd like to have an example of the expected request data frame, and then we can compare with the one sent by lookout.

Ryan Shi
National Instruments
0 Kudos
Message 4 of 14
(6,524 Views)

I am using Lookout version 4.5.1 and it does not have the diagnostic feature built in as you specified.  Is there another way to log the serial port information?

Werner Knight
0 Kudos
Message 5 of 14
(6,520 Views)

You may use 3rd party serial monitor tool.

 

Can you read other registers? I want to make sure that only these 3 registers have the problem and you can read other holding registers well when you remove the expressions.

 

I probably know what request data lookout modbus sends out. But I need to know what kind of request data the Zetron accepts on these 3 registers. Maybe you can get it from manual, or ask Zetron technical support.

Ryan Shi
National Instruments
0 Kudos
Message 6 of 14
(6,517 Views)

The Zetron 1708 Manual has the following paragraph:

 

"Queries to read an accumulator or counter must request all associated registers or an illegal
data address exception will be returned. An illegal data address exception will also be
returned to queries that overlap accumulator or counter address boundaries by requesting
more than nine registers."

 

Exactly, how do I read all of the associated registers together? If I just insert expressions into the process panel to display the values, I get modbus exception errors.

 

Werner

 

Werner Knight
0 Kudos
Message 7 of 14
(6,515 Views)

Create a new Modbus object, connected to the same serial port and same device. Create expressions to read that 3 registers from the new Modbus object.

 

In the new modbus object's property diaglog box, select Advanced, change "read holding regs" to 9 or lower. This value means how many registers can be read together.

 

So, this new Modbus is just for reading those special registers. And it cannot read more than 9 registers in one read command.

Ryan Shi
National Instruments
0 Kudos
Message 8 of 14
(6,513 Views)

I did as you said and after making the new modbus object as specified and inserting all of the expressions for all of the registers associated with the specific counter that I wanted to read, it provided me with the values.  The key is that you do have to have expressions for the three registers holding the counter values which are 42011, 42012, 42013 for counter one, you also have to have expressions for the three registers associated with the period, which are 42014, 42015, and 42016 even though I wasn't using them otherwise it gives you illegal modbus address errors.

 

 

Werner Knight
0 Kudos
Message 9 of 14
(6,511 Views)

Need help with this also, could someone explain or show an example of the expressions, counters, etc. for this same problem (value and period)?  I keep gettting errors!  thanks

0 Kudos
Message 10 of 14
(6,251 Views)