minmax.comp
来自「CNC 的开放码,EMC2 V2.2.8版」· COMP 代码 · 共 16 行
COMP
16 行
component minmax "Track the minimum and maximum values of the input to the outputs";pin in float in;pin in bit reset "When reset is asserted, 'in' is copied to the outputs";pin out float max_;pin out float min_;function _;license "GPL";;;FUNCTION(_) { if(reset) { max_ = min_ = in; } else { if(in > max_) max_ = in; if(in < min_) min_ = in; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?