Wolverine458
Member
Hi all-
I have an application where a part is being measured using stroke reading cylinders and a HSCE2 card. Basically I'm using the high-speed counter to count the pulses from the cylinder, and then using a calibrated offset, determine the part dimensions. One pulse is equal to 1/10 of a mm. This is done for both length and width.
The customer needs to be able to input 4 parameters from the PV600 for each of 255 different part types- length, length +/-, width, and width +/-. I will calculate a min and max for both length and width, then loop through with the measured values to determine the part type.
The setpoints need to be entered from the PV in mm with one decimal place (xxx.x mm). Obviously, I can use floating point files for this in the PLC, but then I'll end up with 8 floating point files of 255 elements each. Would it be better to store the values in the PLC in integer files in tenths of a mm (104.2 entered on PV writes 1042 to the PLC register)? I think I could use scaling in the PV to do this. This way all of my PLC registers that I need to scan through and compare are integer files. I know this would save memory, but possibly scan time as well.
Any thoughts?
I have an application where a part is being measured using stroke reading cylinders and a HSCE2 card. Basically I'm using the high-speed counter to count the pulses from the cylinder, and then using a calibrated offset, determine the part dimensions. One pulse is equal to 1/10 of a mm. This is done for both length and width.
The customer needs to be able to input 4 parameters from the PV600 for each of 255 different part types- length, length +/-, width, and width +/-. I will calculate a min and max for both length and width, then loop through with the measured values to determine the part type.
The setpoints need to be entered from the PV in mm with one decimal place (xxx.x mm). Obviously, I can use floating point files for this in the PLC, but then I'll end up with 8 floating point files of 255 elements each. Would it be better to store the values in the PLC in integer files in tenths of a mm (104.2 entered on PV writes 1042 to the PLC register)? I think I could use scaling in the PV to do this. This way all of my PLC registers that I need to scan through and compare are integer files. I know this would save memory, but possibly scan time as well.
Any thoughts?
Last edited: