Cleanup
This commit is contained in:
@@ -183,20 +183,3 @@ monitoring:
|
||||
# time:
|
||||
# trajectory: 100 # Time allowed outside max diff velo before system init halt
|
||||
# drive: 200 # Time allowed outside max diff velo before system disables drive
|
||||
|
||||
#plc:
|
||||
# enable: true # Enable axis plc
|
||||
# externalCommands: true # Allow axis to inputs from PLC
|
||||
# file: ${PLC_PATH}test.plc
|
||||
# code: # Sync code
|
||||
# - "if(static.counter % ${LIMIT} == 0){println('AX PLC: Appended');static.counter:=0;};" # calculate set pos for physical axis
|
||||
# - "if(not(static.plc_code_loaded)) {static.counter:=static.counter+1;};"
|
||||
# - ec0.s$(DRV_SLAVE).ONE > 1; # Enable axis if one of master axes is enabled
|
||||
# - ec0.s$(DRV_SLAVE).ZERO > 1; # calculate set pos for physical axis
|
||||
# velocity_filter: # Filter used to smother velocity feedforward
|
||||
# encoder: # Filter plc enc velo
|
||||
# enable: false # Filter enable
|
||||
# size: 100 # Filter size
|
||||
# trajectory: # Filter plc traj velo
|
||||
# enable: false # Filter enable
|
||||
# size: 100 # Filter size
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
macros: LIMIT=1000,TYPE=1 # Macros to pass to this file (also plc.file)
|
||||
plc:
|
||||
id: 1
|
||||
enable: yes
|
||||
rateMilliseconds: 1
|
||||
file: ${PLC_PATH}test.plc
|
||||
code:
|
||||
- "if(static.counter % ${LIMIT} == 0){println('PLC: Appended');static.counter:=0;};" # calculate set pos for physical axis
|
||||
- "if(not(static.plc_code_loaded)) {static.counter:=static.counter+1;};"
|
||||
@@ -1,9 +0,0 @@
|
||||
###############################################################################################
|
||||
# For help on syntax, variables and functions, please read the file: "plcSyntaxHelp.plc"
|
||||
#
|
||||
# PLC Functionality Demo:
|
||||
# No hardware related variables
|
||||
#
|
||||
|
||||
static.time:=ec_get_time()/1E9;
|
||||
static.sineval:=sin(2*pi*${FREQ=10}*static.time);
|
||||
@@ -1,9 +0,0 @@
|
||||
static.counter:=static.counter+1;
|
||||
static.plc_code_loaded:=1;
|
||||
if(static.counter % ${LIMIT} == 0) {
|
||||
if(${TYPE}=0) {
|
||||
println('AX PLC: File');
|
||||
} else {
|
||||
println('PLC : File');
|
||||
};
|
||||
};
|
||||
@@ -45,7 +45,6 @@ ecmcConfigOrDie "Cfg.EcApplyConfig(1)"
|
||||
## AXIS 1
|
||||
#
|
||||
epicsEnvSet("DEV", "$(IOC)")
|
||||
epicsEnvSet("PLC_PATH", "/ioc/c6025a5a/ecmccfg/examples/test/ecmccomp/plc/")
|
||||
${SCRIPTEXEC} ${ECMC_CONFIG_ROOT}loadYamlAxis.cmd, "FILE=./cfg/axis.yaml"
|
||||
|
||||
##############################################################################
|
||||
|
||||
Reference in New Issue
Block a user