plcopen 0.22.0
载入中...
搜索中...
未找到
mc_pins.h
浏览该文件的文档.
1#pragma once
2
3namespace generated
4{
5
6inline constexpr PinDesc kPinsMC_Power[] = {
7 {"axis", Type::axis_ref, true},
8 {"enable", Type::bool_, true},
9 {"enablepositive", Type::bool_, true},
10 {"enablenegative", Type::bool_, true},
11 {"status", Type::bool_, false},
12 {"valid", Type::bool_, false},
13 {"error", Type::bool_, false},
14 {"errorid", Type::dint, false},
15};
16
17inline constexpr PinDesc kPinsMC_Home[] = {
18 {"axis", Type::axis_ref, true},
19 {"execute", Type::bool_, true},
20 {"position", Type::lreal, true},
21 {"buffermode", Type::dint, true, binding_type::mc_buffer_mode},
22 {"done", Type::bool_, false},
23 {"busy", Type::bool_, false},
24 {"active", Type::bool_, false},
25 {"commandaborted", Type::bool_, false},
26 {"error", Type::bool_, false},
27 {"errorid", Type::dint, false},
28};
29
30inline constexpr PinDesc kPinsMC_Stop[] = {
31 {"axis", Type::axis_ref, true},
32 {"execute", Type::bool_, true},
33 {"deceleration", Type::lreal, true},
34 {"jerk", Type::lreal, true},
35 {"done", Type::bool_, false},
36 {"busy", Type::bool_, false},
37 {"commandaborted", Type::bool_, false},
38 {"error", Type::bool_, false},
39 {"errorid", Type::dint, false},
40};
41
42inline constexpr PinDesc kPinsMC_Halt[] = {
43 {"axis", Type::axis_ref, true},
44 {"execute", Type::bool_, true},
45 {"deceleration", Type::lreal, true},
46 {"jerk", Type::lreal, true},
47 {"buffermode", Type::dint, true, binding_type::mc_buffer_mode},
48 {"done", Type::bool_, false},
49 {"busy", Type::bool_, false},
50 {"active", Type::bool_, false},
51 {"commandaborted", Type::bool_, false},
52 {"error", Type::bool_, false},
53 {"errorid", Type::dint, false},
54};
55
56inline constexpr PinDesc kPinsMC_MoveAbsolute[] = {
57 {"axis", Type::axis_ref, true},
58 {"execute", Type::bool_, true},
59 {"continuousupdate", Type::bool_, true},
60 {"position", Type::lreal, true},
61 {"velocity", Type::lreal, true},
62 {"acceleration", Type::lreal, true},
63 {"deceleration", Type::lreal, true},
64 {"jerk", Type::lreal, true},
65 {"direction", Type::dint, true, binding_type::mc_direction},
66 {"buffermode", Type::dint, true, binding_type::mc_buffer_mode},
67 {"done", Type::bool_, false},
68 {"busy", Type::bool_, false},
69 {"active", Type::bool_, false},
70 {"commandaborted", Type::bool_, false},
71 {"error", Type::bool_, false},
72 {"errorid", Type::dint, false},
73};
74
75inline constexpr PinDesc kPinsMC_MoveRelative[] = {
76 {"axis", Type::axis_ref, true},
77 {"execute", Type::bool_, true},
78 {"continuousupdate", Type::bool_, true},
79 {"distance", Type::lreal, true},
80 {"velocity", Type::lreal, true},
81 {"acceleration", Type::lreal, true},
82 {"deceleration", Type::lreal, true},
83 {"jerk", Type::lreal, true},
84 {"buffermode", Type::dint, true, binding_type::mc_buffer_mode},
85 {"done", Type::bool_, false},
86 {"busy", Type::bool_, false},
87 {"active", Type::bool_, false},
88 {"commandaborted", Type::bool_, false},
89 {"error", Type::bool_, false},
90 {"errorid", Type::dint, false},
91};
92
93inline constexpr PinDesc kPinsMC_MoveAdditive[] = {
94 {"axis", Type::axis_ref, true},
95 {"execute", Type::bool_, true},
96 {"continuousupdate", Type::bool_, true},
97 {"distance", Type::lreal, true},
98 {"velocity", Type::lreal, true},
99 {"acceleration", Type::lreal, true},
100 {"deceleration", Type::lreal, true},
101 {"jerk", Type::lreal, true},
102 {"buffermode", Type::dint, true, binding_type::mc_buffer_mode},
103 {"done", Type::bool_, false},
104 {"busy", Type::bool_, false},
105 {"active", Type::bool_, false},
106 {"commandaborted", Type::bool_, false},
107 {"error", Type::bool_, false},
108 {"errorid", Type::dint, false},
109};
110
111inline constexpr PinDesc kPinsMC_MoveVelocity[] = {
112 {"axis", Type::axis_ref, true},
113 {"execute", Type::bool_, true},
114 {"continuousupdate", Type::bool_, true},
115 {"velocity", Type::lreal, true},
116 {"acceleration", Type::lreal, true},
117 {"deceleration", Type::lreal, true},
118 {"jerk", Type::lreal, true},
119 {"direction", Type::dint, true, binding_type::mc_direction},
120 {"buffermode", Type::dint, true, binding_type::mc_buffer_mode},
121 {"invelocity", Type::bool_, false},
122 {"busy", Type::bool_, false},
123 {"active", Type::bool_, false},
124 {"commandaborted", Type::bool_, false},
125 {"error", Type::bool_, false},
126 {"errorid", Type::dint, false},
127};
128
129inline constexpr PinDesc kPinsMC_SetOverride[] = {
130 {"axis", Type::axis_ref, true},
131 {"enable", Type::bool_, true},
132 {"velfactor", Type::lreal, true},
133 {"accfactor", Type::lreal, true},
134 {"jerkfactor", Type::lreal, true},
135 {"enabled", Type::bool_, false},
136 {"busy", Type::bool_, false},
137 {"error", Type::bool_, false},
138 {"errorid", Type::dint, false},
139};
140
141inline constexpr PinDesc kPinsMC_Reset[] = {
142 {"axis", Type::axis_ref, true},
143 {"execute", Type::bool_, true},
144 {"done", Type::bool_, false},
145 {"busy", Type::bool_, false},
146 {"error", Type::bool_, false},
147 {"errorid", Type::dint, false},
148};
149
150} // namespace generated
constexpr PinDesc kPinsMC_MoveVelocity[]
constexpr PinDesc kPinsMC_Stop[]
constexpr PinDesc kPinsMC_MoveAdditive[]
constexpr PinDesc kPinsMC_Power[]
constexpr PinDesc kPinsMC_SetOverride[]
constexpr PinDesc kPinsMC_MoveRelative[]
constexpr PinDesc kPinsMC_Reset[]
constexpr PinDesc kPinsMC_Halt[]
constexpr PinDesc kPinsMC_MoveAbsolute[]
constexpr PinDesc kPinsMC_Home[]