CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > MetalWorking Machines > Okuma


Okuma Discuss Okuma machines here.


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-15-2007, 11:34 PM
 
Join Date: Feb 2007
Location: United States
Posts: 2
Musclebound is on a distinguished road
Okuma parts counter

... hi everyone, newbie here. just found this web forum today, so far it seems pretty helpful.

I have two questions I'm hoping someone can help me with.
First... I have an Okuma L-370 lathe with E-100 controls. I want to know how to reference the internal clock so I can track the number of parts by shift. Can this data be sent to the floppy drive... being I don't have any sort of DNC network? Right now, I just have VC80=VC80+1 at the end of the program... but I need something a little more specific. Say 'some known address' is between the hours of 7am and 3pm then write to this variable.

make sense????

Second question.. I have a Mori NL2000 SMC lathe, and want to know if there is a way to do sort of a panel check to make sure the load monitor is turned on, and not set in teach mode? or is there a parameter that only allows the load monitor to be in monitor mode?

... usually don't type this much... sorry

thanks for any help..........
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 02-26-2007, 05:41 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 575
broby is on a distinguished road
Hi Musclebound,
If you ever find out how to access the internal clock I would really like to know also!
In the mean time... I am using the free running counter that is updated every second for time keeping on one of our E-100M machining centres.
Before starting the program I run the following code to capture the start "time" of the program

OSTRT ( TIME PROG CREATE )
(Linked to G119)
FWRITC MD1:TIME.CSV;A
PUT 'Job Number'
PUT ','
PUT 'Confirm No.'
PUT ','
PUT 'OP. Number'
PUT ','
PUT 'MATERIAL No.'
PUT ','
PUT 'Time secs'
PUT ','
PUT 'Day'
PUT ','
PUT 'Month'
PUT ','
PUT 'Year'
WRITE C
CLOSE C
VC30=VDIN[1001] (capture start time)
NRTS
RTS

Where VDIN[1001] is a free running counter that steps up in 1 second intervals. This counter only resets when the power is turned OFF/ON.
All the PUT statements are there to output a fixed format of text to a TIME.CSV file.
The "FWRITC MD1:TIME.CSV;A" command line will create a file in memory area MD1 called TIME.CSV if it does not exist, otherwise it will Append this data on the end of the file if it already exists.

After the program finishes I use the following code to write the time keeping information to the TIME.CSV file.

OTIED
(LINKED TO G118)
(write time keeping data to time.csv file)
VC31=VDIN[1001] (Capture end time)
VC34=VC31-VC30 (Calc total Cycle Time)
FWRITC MD1:TIME.CSV;A
PUT VC32 (Set to Job Number)
PUT ','
PUT VC33 (Set to Confirmation Number)
PUT ','
PUT VC38 (Set to Operation Number)
PUT ','
PUT VC39 (Set to Material Number)
PUT ','
PUT VC34 (Cycle time in Seconds as above)
PUT ','
PUT VC35 (Today's Day number, i.e. 25 for the 25th of the month)
PUT ','
PUT VC36 (Today's Month number i.e. 8 for August)
PUT ','
PUT VC37 (Year value, e.g. 2007)
WRITE C (write the data to the file)
CLOSE C (close the file)
RTS

At the end of shift the operators save the "Time.csv" file to a reports folder on the network for importing into a spreadsheet for time keeping later on.

As an example the time file might have data such as...

Job Number,Confirm No.,OP. Number,MATERIAL No.,Time secs,Day,Month,Year
60013881, 742195, 1, 70007923, 478, 11, 2, 2007
Job Number,Confirm No.,OP. Number,MATERIAL No.,Time secs,Day,Month,Year
60013881, 742195, 2, 70007923, 660, 11, 2, 2007
Job Number,Confirm No.,OP. Number,MATERIAL No.,Time secs,Day,Month,Year
40024965, 742761, 3, 11436723, 1371, 11, 2, 2007
Job Number,Confirm No.,OP. Number,MATERIAL No.,Time secs,Day,Month,Year
40024936, 742353, 1, 11435700, 1225, 11, 2, 2007
Job Number,Confirm No.,OP. Number,MATERIAL No.,Time secs,Day,Month,Year
40024954, 742906, 1, 11484056, 8623, 11, 2, 2007
Job Number,Confirm No.,OP. Number,MATERIAL No.,Time secs,Day,Month,Year
40024919, 743389, 1, 11462969, 1247, 11, 2, 2007

One of the pitfalls with this system is if the machine is turned OFF/ON between the Start Timer call and the Stop Timer call. Then a really weird cycle time gets written to the file as the timer will have been reset with the power restart. You end up with a large negative number usually, but at least that is easy to spot!
Hope this information is helpfull?!?

Sorry I can not help you for your second question.

Regards
Brian.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 02-26-2007, 09:43 PM
 
Join Date: Feb 2007
Location: United States
Posts: 2
Musclebound is on a distinguished road
... thanks for the info.

After talking to a few A.E's from Okuma, they said I should be looking to MacMan for this type of data (internal clock...) so i'm waiting to see if they can get me a few manuals for the P/E controls. I will keep you updated when I find out more... which I'm hoping by the end of the week.

thanks again for the code.

p.s. sorry for the short post..... i'm on a brainstorm for another macro right now!!! ttyl
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 02-26-2007, 09:53 PM
broby's Avatar  
Join Date: Apr 2006
Location: Australia
Age: 48
Posts: 575
broby is on a distinguished road
Yeah I had at MacMan but could not figure out the name of the system variable to read to get the internal clock or date.
If you can find this out and let me know I would be very impressed!

What are trying to figure out for your macro?
I have quite a number of macros that I could probably share with you if you are willing to share with me?!?

I am always on th lookout for new ideas and ways of reducing the programming work load by using this type of practice.
Cheers
Brian.
Tweet this Post!Share on Facebook
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Okuma ADMAC Parts broby G-Code Programing 0 12-04-2006 07:43 PM
Parts counter daewooevc Daewoo/Doosan 1 11-01-2006 09:38 AM
Parts counter daewooevc Mazak, Mitsubishi, Mazatrol 1 10-26-2006 05:36 PM
Fanuc parts counter scubanick Fanuc 24 07-12-2006 02:16 PM
counter cncsdr Haas Mills 2 11-08-2005 08:56 AM




All times are GMT -5. The time now is 08:01 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353