-
Notifications
You must be signed in to change notification settings - Fork 0
/
i_o.def
155 lines (130 loc) · 7.47 KB
/
i_o.def
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
!!:--------------------------------------------------------------------------:
!!: File : i_o.def :
!!: Creation date : 16.09.2013 :
!!: Last modification : see table below :
!!: Author : FANUC FA Switzerland / Peter Bloesch :
!!: Description : Definition of inputs/outputs for PMC preprocessing :
!!:--------------------------------------------------------------------------:
!!
!!:--------------------------------------------------------------------------:
!!: Modification :
!!:--------------------------------------------------------------------------:
!!: Date :Version: Sign :Description :
!!:--------------------------------------------------------------------------:
!!:08.06.18: 2.0.0 :Blp :Definitions for spindle STO added :
!!:--------------------------------------------------------------------------:
!!:20.12.18: 2.1.0 :Blp :I/O for portable manual pulse generator added :
!!:--------------------------------------------------------------------------:
!!: : : : :
!!:--------------------------------------------------------------------------:
!!: : : : :
!!:--------------------------------------------------------------------------:
#include "config.def"
!! ---------------------------------------------------------------------------
!! lubrication
!! ---------------------------------------------------------------------------
#if lubrication_support > 0
#set __S_LEVEL_LUBRIC = X4.0 #set __S_PRESSURE_LUBRIC = X4.1 #set __OUTPUT_LUBRIC_ON = Y10.1 #endif
!! ---------------------------------------------------------------------------
!! Path switching
!! in case of operatorspanel 0 (Software operator's panel) or
!! operatorspanel 1 (Small machine operator's panel with 30 keys),
!! define the inputs for path synchronization and path switching
!! ---------------------------------------------------------------------------
#if operatorspanel < 2 and nbr_of_path > 1
#set __PATH_SYNC = X15.4 #set __PATH_SYNC_LAMP = Y11.4 #set __PATH_PLUS = X15.5 #set __PATH_PLUS_LAMP = Y11.5 #if nbr_of_path > 2
#set __PATH_MINUS = X15.6 #set __PATH_MINUS_LAMP = Y11.6 #endif
#endif
!! ---------------------------------------------------------------------------
!! portable manual pulse generator (A13B-0206-Cxyz#....)
!! ---------------------------------------------------------------------------
#if handwheel_support == 3
#set __PMPG_SELECTOR_X1 = X4.4 #set __PMPG_SELECTOR_X10 = X4.5 #set __PMPG_SELECTOR_X100 = X4.6 #set __PMPG_SELECTOR_X1000 = X4.7 #set __PMPG_SELECTOR_AXIS_1 = X5.0 #set __PMPG_SELECTOR_AXIS_2 = X5.1 #set __PMPG_SELECTOR_AXIS_3 = X5.2 #set __PMPG_SELECTOR_AXIS_4 = X5.3 #set __PMPG_SELECTOR_AXIS_5 = X5.4 #set __PMPG_SELECTOR_AXIS_6 = X5.5 #set __PMPG_LED = Y10.2 #endif
!! ---------------------------------------------------------------------------
!! Dual Check Safety
!! ---------------------------------------------------------------------------
#if dcs_support == 1
!! --------------------------------------
!! main contactor (MCC)
!! --------------------------------------
#set __MCC_STATE = X8.0 #set __OUTPUT_MCC = Y8.0 !! --------------------------------------
!! door status
!! --------------------------------------
#set __GUARD_STATE = X8.1 #set __UNLOCK_DOOR = Y8.1 !! --------------------------------------
!! hold to run button
!! --------------------------------------
#set __HOLD_TO_RUN_BUTTON = X8.2 !! --------------------------------------
!! switch to activate setup mode
!! --------------------------------------
#set __SETUP_SWITCH = X8.3 !! --------------------------------------
!! In case standard machine operator's
!! panel with 55 keys isn't used, define
!! the key to open the protection door
!! --------------------------------------
#if operatorspanel != 2
#set __DOOR_KEY = X8.5 #set __DOOR_LAMP = Y8.7 #endif
#endif
!! ---------------------------------------------------------------------------
!! overtravel inputs
!! ---------------------------------------------------------------------------
!! The code for the overtravel inputs need to be modified at the beginning of
!! each axis specific sub-program (Axis0x_Pyy).
!! ---------------------------------------------------------------------------
!! reference inputs
!! ---------------------------------------------------------------------------
!! The code for the reference input need to be modified at the beginning of each
!! axis specific sub-program (Axis0x_Pyy).
!! ---------------------------------------------------------------------------
!! serial spindle safe torque off STO (LEVEL-UP ALPHA iSP-B, BETA iSVSP-B)
!! this functionality will be included in case of 3xi-B, 0i-F, PMi-A controls
!! and Dual Check Safety active
!! ---------------------------------------------------------------------------
!! The code for the serial spindle safe off outputs need to be modified at
!! the beginning of each spindle specific sub-program (SpiRun_Pxx).
!! ---------------------------------------------------------------------------
!! analog spindle I/O module A (ADA02A)
!! ---------------------------------------------------------------------------
!! The code for the outputs for the analog output module need to be modified at
!! the end of each path specific sub-program SpiRun_Pyy.
!! ---------------------------------------------------------------------------
!! coolant
!! ---------------------------------------------------------------------------
!! The code for the coolant output need to be modified at the end of each path
!! specific coolant sub-program (Coolant_Pyy).
!! ---------------------------------------------------------------------------
!! axis brake
!! ---------------------------------------------------------------------------
!! The code for the brake output need to be modified at the end of each axis
!! specific sub-program (Axis0x_Pyy) which includes brake support.
!! ===========================================================================
!! ===========================================================================
!! ===========================================================================
!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!
!! do not change the following definitions!!!!!!!!!!!!!
!!
!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! ---------------------------------------------------------------------------
!! emergency stop
!! ---------------------------------------------------------------------------
#define __B_EMG_STOP X0008
#set __KEY_EMG_STOP = X0008.4 !! ---------------------------------------------------------------------------
!! operatorspanel
!! ---------------------------------------------------------------------------
!! 0 = software operator's panel
!! 1 = small machine operator's panel with 30 keys
!! 2 = standard machine operator's panel with 55 keys
!! 3 = iPendant (for CNC)
#if operatorspanel == 1
#include "def\op_30keys.def"
#endif
#if operatorspanel == 2
#include "def\op_55keys.def"
#endif
#if operatorspanel == 3
#include "def\i_pendant.def"
#endif
#if handwheel_support == 2
#include "def\hmop.def"
#endif
#endif !! i_o_def