Steve Kemp
Member
- Join Date
- Nov 2003
- Posts
- 122
Hi All. I would welcome suggestions as to the error of my ways regarding the following: I'm trying to display a 4-digit (1 dec. place) number on a NS5 HMI. The source for the data is a 4-digit integer (channel; output to a D/A module), namely CIO2001, which I'm presenting to an unsigned long binary divide instruction (/UL433) as the first dividend word. The first divisor word is a constant, &10, and the output word to the HMI is D201. The data types as shown within the instruction's dialogue box are... CIO2001: Channel; &10: UINT; D201: REAL. The output value remains obstinately at zero until the input is at least 10 (that's got to be a clue), and the HMI display for D201 (set up as REAL) remains at zero at all times. I've checked for accidental use of adjacent registers and they're all clear.
Is this perhaps a dog's dinner of incompatibility, requiring some pre-instruction conversion? Unless there's a hidden way to put a decimal place into a NS5 numeric display field without it expecting REAL type data...I don't think so.
Thanks for the use of your collective brains.
Is this perhaps a dog's dinner of incompatibility, requiring some pre-instruction conversion? Unless there's a hidden way to put a decimal place into a NS5 numeric display field without it expecting REAL type data...I don't think so.
Thanks for the use of your collective brains.