X-beam fixture stations (B7 and B6)

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
-
There are two workstations (B7 and B6) for the X-beam assembly. These stations are not connected to CLEVER kernel and they work using a barcodes for "Default model" (PLCDMnn).
+
There are two workstations (B7 and B6) for the X-beam assembly. These stations are not connected to CLEVER kernel and they work using a barcodes for "Default model" (PLCDMnn). Because of a high amount of operations, both stations are devided to two halves (B7+C7 and B6+C6).
When the specification of the model is scanned, the client searches the information in a file /usr/local/plc/etc/models_B7(6), which looks like:
When the specification of the model is scanned, the client searches the information in a file /usr/local/plc/etc/models_B7(6), which looks like:
  # PLC - Product Line Control (c) CLEVER System s.r.o. 2001
  # PLC - Product Line Control (c) CLEVER System s.r.o. 2001
Line 44: Line 44:
When it is needed to change the Default model, the new specification can be scanned. Default Model specification can be scanned only when the product is not yet started.
When it is needed to change the Default model, the new specification can be scanned. Default Model specification can be scanned only when the product is not yet started.
 +
 +
Special parameters in the client configuration file which are used for B7 and B6 stations:
 +
 +
'''Forwarding of operator ID'''
 +
 +
When the operator ID is scanned, it is forwarded to the right side as well.
 +
WorkPlace.WorkerID.Forwarding = Yes
 +
 +
'''Forwarding of product ID'''
 +
 +
When the next product is started (after the scanning of the default model specification or when the previous product is finished), its ID is forwarded to the right side as well.
 +
WorkPlace.ProductID.Forwarding = Yes
 +
 +
'''Automatic product ID'''
 +
 +
Depends on the current default model.
 +
WorkPlace.SNAssume = Automatic
 +
 +
'''Forwarding of the default model specification'''
 +
 +
When the default model specification is scanned, it is forwarded to the right side as well.
 +
Workplace.DefaultModelScan.Forwarding = Yes
 +
 +
'''Close oparation for the default model specification'''
 +
 +
When the operation B72 is finished, the product needs to be finished. Only hten it is possible to scan a different default model specification.
 +
Workplace.DefaultModelScan.CloseOperation = 2
 +
 +
'''Product cancel'''
 +
 +
If the PLC returns back NOK result, the whole product is cancelled.
 +
workplace.devicehub.rackshub1.low_level.device.racks1.hub_rule.nok.transform = \
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCB77 B7");\\
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCB76 B7");\\
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCB75 B7");\\
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCB74 B7");\\
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCB73 B7");\\
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCC75 C7");\\
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCC74 C7");\\
 +
    () = system("/usr/local/plc/bin/plc_scan PLCABCC73 C7");
 +
 +
'''Cross-side dependencies'''
 +
 +
It is possible to define the dependencies on operations from the opposite side.
 +
operation_right.Tightening_Front.DependsOn[0] = '''1@0'''
 +
operation_right.Tightening_Back.DependsOn = '''2@0'''
 +
operation_right.Control_box_1.DependsOn = '''4@0'''
 +
operation_right.Control_box_2.DependsOn = '''5@0'''
 +
operation_right.Snubber_Break.DependsOn = 3
 +
operation.Turn_180.DependsOn = '''1@1'''
 +
operation.Length_Measurement.DependsOn = '''2@1'''
 +
operation.New_signal.DependsOn = 3
 +
operation.Fixture_Release.DependsOn = 6
 +
operation.Scan_c-box.DependsOn[0] = '''3@1'''
 +
operation.Label_Scan.DependsOn[0] = 4
 +
 +
'''Product cancel forwarding'''
 +
 +
When the product is completely cancelled (PLCABCALL), it is forwarded to the roght side to be cancelled there as well.
 +
WorkPlace.PLCABC.Forwarding = Yes

Current revision as of 20:03, 26 May 2013

There are two workstations (B7 and B6) for the X-beam assembly. These stations are not connected to CLEVER kernel and they work using a barcodes for "Default model" (PLCDMnn). Because of a high amount of operations, both stations are devided to two halves (B7+C7 and B6+C6). When the specification of the model is scanned, the client searches the information in a file /usr/local/plc/etc/models_B7(6), which looks like:

# PLC - Product Line Control (c) CLEVER System s.r.o. 2001

# Configuration table for default models
# When PLCDMnn is scanned, the value nn is searched as ModelNo in the list below.
# Then each operation has its basic definition in the following format:
#
# OpIndex: Plan PartNum BarCode|RackNumber[     LowerLimit      UpperLimit]
#
# RackNumber is used as a value for the V parameter sent to PLC.
# LowerLimit and UpperLimit are used for the Measurement evaluation.

ModelNo = 01
ModelName = X Y413 LHD
ModelPartNum = 31332018
0: 1
1: 0
2: 1    31332018        1
3: 5
4: 1    Turn 180        0
5: 4
6: 1    Measurement     0       10000   30000
7: 1
8: 1    Release 1

ModelNo = 11
ModelName = X Y413 RHD
ModelPartNum = 31332019
0: 1
1: 0
2: 1    31332019        11
3: 4
4: 1    Turn 180        0
5: 4
6: 1    Measurement     0       10000   30000
7: 1
8: 1    Release 1

It is possible to edit this file using cct: cct e @workplaces/B7/etc/models_B7


When the product is finished, the next one is automatically started using the same Default Model specification.

When it is needed to change the Default model, the new specification can be scanned. Default Model specification can be scanned only when the product is not yet started.

Special parameters in the client configuration file which are used for B7 and B6 stations:

Forwarding of operator ID

When the operator ID is scanned, it is forwarded to the right side as well.

WorkPlace.WorkerID.Forwarding = Yes

Forwarding of product ID

When the next product is started (after the scanning of the default model specification or when the previous product is finished), its ID is forwarded to the right side as well.

WorkPlace.ProductID.Forwarding = Yes

Automatic product ID

Depends on the current default model.

WorkPlace.SNAssume = Automatic

Forwarding of the default model specification

When the default model specification is scanned, it is forwarded to the right side as well.

Workplace.DefaultModelScan.Forwarding = Yes

Close oparation for the default model specification

When the operation B72 is finished, the product needs to be finished. Only hten it is possible to scan a different default model specification.

Workplace.DefaultModelScan.CloseOperation = 2

Product cancel

If the PLC returns back NOK result, the whole product is cancelled.

workplace.devicehub.rackshub1.low_level.device.racks1.hub_rule.nok.transform = \
   () = system("/usr/local/plc/bin/plc_scan PLCABCB77 B7");\\
   () = system("/usr/local/plc/bin/plc_scan PLCABCB76 B7");\\
   () = system("/usr/local/plc/bin/plc_scan PLCABCB75 B7");\\
   () = system("/usr/local/plc/bin/plc_scan PLCABCB74 B7");\\
   () = system("/usr/local/plc/bin/plc_scan PLCABCB73 B7");\\
   () = system("/usr/local/plc/bin/plc_scan PLCABCC75 C7");\\
   () = system("/usr/local/plc/bin/plc_scan PLCABCC74 C7");\\
   () = system("/usr/local/plc/bin/plc_scan PLCABCC73 C7");

Cross-side dependencies

It is possible to define the dependencies on operations from the opposite side.

operation_right.Tightening_Front.DependsOn[0] = 1@0
operation_right.Tightening_Back.DependsOn = 2@0
operation_right.Control_box_1.DependsOn = 4@0
operation_right.Control_box_2.DependsOn = 5@0
operation_right.Snubber_Break.DependsOn = 3
operation.Turn_180.DependsOn = 1@1
operation.Length_Measurement.DependsOn = 2@1
operation.New_signal.DependsOn = 3
operation.Fixture_Release.DependsOn = 6
operation.Scan_c-box.DependsOn[0] = 3@1
operation.Label_Scan.DependsOn[0] = 4

Product cancel forwarding

When the product is completely cancelled (PLCABCALL), it is forwarded to the roght side to be cancelled there as well.

WorkPlace.PLCABC.Forwarding = Yes
Personal tools