Ron Beaufort
Lifetime Supporting Member
first cut at data collection ...
Greetings to Peter and all ...
the Hotrod (click here for picture) is running along even as I write ... I’ll be using an SLC-5/05 to provide PID control - but until later I’ll leave the PID in the manual mode ... I’ll be using the Hotrod’s “tip” thermocouple which should provide a reasonable amount of deadtime/lag for the system ... I’ll leave the Hotrod’s fans running with an airflow of 20% of full flow ... later we’ll increase this to 40% (or something else) to gauge how the system responds to load changes ... note that the fans and the airflow will be controlled by a separate PLC-5 ... that way we can keep the SLC’s program stripped down to its very basics - and concentrate just on the Hotrod’s heater section ...
the Hotrod gets its temperature input signal (PV) from a J-type thermocouple and a 0 to 500 degree F transmitter ... 4 to 20 mA from the transmitter is wired to Channel 0 of a 1746-NI4 module located in the SLC’s slot number 1 ... (address I:1.0) ...
the output (CV/CO) signal is wired to Channel 0 of a 1746-NO4I module located in the SLC’s slot number 2 ... (address O:2.0) ... the 4 to 20 mA signal from the module is wired to an Omega PCM-1 “Pulse Control Module” ... this component turns the current signal into an “on/off” pulse train which then controls a solid state relay for the 120 VAC, 25 Watt heating element ...
I’ve written a small QBASIC program which will listen to the PLC’s serial port ... as the test runs, the PLC will transmit the data that Peter requested ... the data will be transmitted once per second ...
here’s what I propose for a “standard” test cycle ... in the manual mode, I’ll set a conservative value for CV/CO (I suggest 10%) ... I’ll let the system settle out to a steady state (something like 117 degsF is common) ... I’ll start the GET_DATA.BAS program running ... I’ll flip the “test” input switch on ... the PLC will run through a short pause of about 15 seconds (with no changes yet) to allow graphing/collecting a “base line” data stream ... at the end of the “base line” pause, the PLC will crank the CV/CO up to a higher value ... (I suggest 80%) ... I’ll allow the system to run long enough (about 20 minutes) to settle out at its new steady state value ... (380 degsF is common) ... during the test, the GET_DATA.BAS program will collect the data stream and write it to a .TXT file ... I’ll provide that file to you guys ... you can crunch the numbers to your hearts’ content and then let me know what “tuning” settings you want to try ... once I’ve got your “try this” settings, I’ll put the Hotrod in automatic and see how the system responds to a few different tests ...
note that I probably won’t have time for too much number crunching at my end ... the bo$$ has come up with some time-consuming work projects for me - but I can probably handle the data collection without too much delay ...
anyway, that’s what I suggest as a “let’s get started” plan of attack ... I’m wide open to suggestions if you have something different in mind ...
I’m attaching copies of both the .RSS program and the .BAS program in case you want to look at them ...... sorry that there is almost ZERO documentation in the .RSS file for now ... I should be able to add rung comments, etc. in a day or so ... I’ll post an updated copy when that’s finished ... I’m also including QBASIC in case you want to poke around with that end of the line ... double-clicking “GO.BAT” should start the little collection program - at least it does on my computers ...
the actual “DATA” file that you asked for is named “Hotrod_TF_A.txt” ... I tried to match the format to your example - but I decided to “pad” the values with leading zeros to keep things lined up ... let me know if all of that fits your needs ... if not, I can make modifications ...
I’m also enclosing the “Hotrod_TF_A.dbf” file - just in case you want to look at that ... I made it with the old-fashioned “Create Snapshot” method by right-clicking on the RSTrend window ...
good luck with your end of things ... let me know if I need to do something different ... it’s no trouble - but it might take a day or two since I’ll have to squeeze it in between work sessions ...
Greetings to Peter and all ...
the Hotrod (click here for picture) is running along even as I write ... I’ll be using an SLC-5/05 to provide PID control - but until later I’ll leave the PID in the manual mode ... I’ll be using the Hotrod’s “tip” thermocouple which should provide a reasonable amount of deadtime/lag for the system ... I’ll leave the Hotrod’s fans running with an airflow of 20% of full flow ... later we’ll increase this to 40% (or something else) to gauge how the system responds to load changes ... note that the fans and the airflow will be controlled by a separate PLC-5 ... that way we can keep the SLC’s program stripped down to its very basics - and concentrate just on the Hotrod’s heater section ...
the Hotrod gets its temperature input signal (PV) from a J-type thermocouple and a 0 to 500 degree F transmitter ... 4 to 20 mA from the transmitter is wired to Channel 0 of a 1746-NI4 module located in the SLC’s slot number 1 ... (address I:1.0) ...
the output (CV/CO) signal is wired to Channel 0 of a 1746-NO4I module located in the SLC’s slot number 2 ... (address O:2.0) ... the 4 to 20 mA signal from the module is wired to an Omega PCM-1 “Pulse Control Module” ... this component turns the current signal into an “on/off” pulse train which then controls a solid state relay for the 120 VAC, 25 Watt heating element ...
I’ve written a small QBASIC program which will listen to the PLC’s serial port ... as the test runs, the PLC will transmit the data that Peter requested ... the data will be transmitted once per second ...
here’s what I propose for a “standard” test cycle ... in the manual mode, I’ll set a conservative value for CV/CO (I suggest 10%) ... I’ll let the system settle out to a steady state (something like 117 degsF is common) ... I’ll start the GET_DATA.BAS program running ... I’ll flip the “test” input switch on ... the PLC will run through a short pause of about 15 seconds (with no changes yet) to allow graphing/collecting a “base line” data stream ... at the end of the “base line” pause, the PLC will crank the CV/CO up to a higher value ... (I suggest 80%) ... I’ll allow the system to run long enough (about 20 minutes) to settle out at its new steady state value ... (380 degsF is common) ... during the test, the GET_DATA.BAS program will collect the data stream and write it to a .TXT file ... I’ll provide that file to you guys ... you can crunch the numbers to your hearts’ content and then let me know what “tuning” settings you want to try ... once I’ve got your “try this” settings, I’ll put the Hotrod in automatic and see how the system responds to a few different tests ...
note that I probably won’t have time for too much number crunching at my end ... the bo$$ has come up with some time-consuming work projects for me - but I can probably handle the data collection without too much delay ...
anyway, that’s what I suggest as a “let’s get started” plan of attack ... I’m wide open to suggestions if you have something different in mind ...
I’m attaching copies of both the .RSS program and the .BAS program in case you want to look at them ...... sorry that there is almost ZERO documentation in the .RSS file for now ... I should be able to add rung comments, etc. in a day or so ... I’ll post an updated copy when that’s finished ... I’m also including QBASIC in case you want to poke around with that end of the line ... double-clicking “GO.BAT” should start the little collection program - at least it does on my computers ...
the actual “DATA” file that you asked for is named “Hotrod_TF_A.txt” ... I tried to match the format to your example - but I decided to “pad” the values with leading zeros to keep things lined up ... let me know if all of that fits your needs ... if not, I can make modifications ...
I’m also enclosing the “Hotrod_TF_A.dbf” file - just in case you want to look at that ... I made it with the old-fashioned “Create Snapshot” method by right-clicking on the RSTrend window ...
good luck with your end of things ... let me know if I need to do something different ... it’s no trouble - but it might take a day or two since I’ll have to squeeze it in between work sessions ...
Last edited: