⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 limit1.comp

📁 CNC 的开放码,EMC2 V2.2.8版
💻 COMP
字号:
component limit1 "Limit the output signal to fall between min and max";pin in float in;pin out float out;param rw float min_=-1e20;param rw float max_=1e20;function _;license "GPL";;;FUNCTION(_) {    double tmp = in;    if(tmp < min_) tmp = min_;    if(tmp > max_) tmp = max_;    out = tmp;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -