about CASE and variable in 840Dpl CNC program?

wendaiyu

Member
Join Date
Jun 2014
Location
toronto
Posts
87
Hi, guys, how are you?

We have an 840Dpl milling machine. There is a CNC program in workpiece file:

IF ($A_DBB[19] B_AND 1==1) GOTOF ABC

N100 REFCYCLE_12 ;AUFRUF REFERENZ-ZYKLUS
;*********************************************************************************
N110 STOPRE

ABC:

N120 IF($A_DBB[2] B_AND 2==2) GOTOF END
N130 CASE PARTNUMBER OF 1 GOTOF MIDDLE 2 GOTOF MIDDLE 3 GOTOF MIDDLE 4 GOTOF LONG 5 GOTOF MIDDLE 6 GOTOF LONG 7 GOTOF MIDDLE 8 GOTOF LONG 9 GOTOF LONG 10 GOTOF LONG 11 GOTOF LONG 12 GOTOF LONG 13 GOTOF LONG 14 GOTOF LONG 15 GOTOF LONG 16 GOTOF SHORT 17 GOTOF SHORT 18 GOTOF SHORT_AWD 19 GOTOF SHORT 20 GOTOF SHORT 21 GOTOF MIDDLE_620 22 GOTOF MIDDLE_620
;*********************************************************************************
N140 FAULT:MSG("WRONG PART ")
N150 M0
N160 GOTOB FAULT
;*********************************************************************************
N170 SHORT:
N180 SHORT_12_KEN
N190 GOTOF END
;*********************************************************************************
N200 MIDDLE:
N210 MIDDLE_12_KEN
N220 GOTOF END
;*********************************************************************************
N221 MIDDLE_620:
N222 MIDDLE_12_620_KEN
N223 GOTOF END
;*********************************************************************************
N230 SHORT_AWD:
N240 SHORT_12_AWD_KEN
N250 GOTOF END
;*********************************************************************************
N260 LONG:
N270 DXX_12
;*********************************************************************************
N280 END:
N290 M30



In line N130, there is a variable “PARTNUMBER”, but I cannot figure out that how/where the machine builder define it. And how to transfer plc data to it?
Could you give me a help?

Thanks a lot.
 

Similar Topics

I figured I’d share my story of a Micro830 that I was banging my head on the wall over in case anyone ever runs into a freak fluke like this. I...
Replies
3
Views
2,025
Hi everyone, new user so please forgive any breaches of etiquette. But in RSLogix how can you convert a string in the PLC to all lowercase and...
Replies
4
Views
1,502
Hi all, I am facing issues with communication to the TruOne ATS of ABB via plc. Plc is M251 of SE. Majorly 2 issues: 1- writing to the modbus...
Replies
5
Views
1,617
Hello everyone, I have recently started a new project using ST in Studio 5000. Previously, I have programmed in ST in Siemens. As i was writting...
Replies
4
Views
2,892
Hello everyone, I have recently started a new project using ST in Studio 5000. Previously, I have programmed in ST in Siemens. As i was writting...
Replies
1
Views
1,393
Back
Top Bottom