哪位高手能帮我解释一下啊,最好能详细点谢谢了!L #DRIVE_IO_ADDRESS //Change address from "INT" to "WORD" T #Addr CALL SFC 14 //Reading Consistent Data of a DP Standard Slave LA

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 15:00:50

哪位高手能帮我解释一下啊,最好能详细点谢谢了!L #DRIVE_IO_ADDRESS //Change address from "INT" to "WORD" T #Addr CALL SFC 14 //Reading Consistent Data of a DP Standard Slave LA
哪位高手能帮我解释一下啊,最好能详细点谢谢了!
L #DRIVE_IO_ADDRESS //Change address from "INT" to "WORD"
T #Addr
CALL SFC 14 //Reading Consistent Data of a DP Standard Slave
LADDR :=#Addr //Peripheral address => Hardware config.
RET_VAL:=#Returncode_SFC14 // 0 => an error occurred during processing
RECORD :=#PI //Target range for read user data.
L #Returncode_SFC14
L 0
I //If an error occurs during processing of the SFC,
JC END //the function will be exited => NW14
L #PI.Actual_position //Allocation of process input data
T #ACTUAL_POSITION
L #PI.Actual_speed
T #ACTUAL_SPEED
L #PI.Active_current
L 10
/I
T #ACTUAL_CURRENT
A #PI.Inverter_ready
= #INVERTER_READY
A #PI.Inverter_ready //A warning is active, if the inverter is still ready for operation
A #PI.Error //and the error bit has been set.
= #WARNING_OF_AXIS
AN #PI.Inverter_ready //An error is present, if the inverter is not ready for operation
A #PI.Error //and the error bit has been set.
= #FAULT_OF_AXIS
A #PI.referenced
= #REFERENCED
A #PI.Target_position_reached
= #TARGET_POS_REACHED

哪位高手能帮我解释一下啊,最好能详细点谢谢了!L #DRIVE_IO_ADDRESS //Change address from "INT" to "WORD" T #Addr CALL SFC 14 //Reading Consistent Data of a DP Standard Slave LA
你把电脑问题放到化妆类来问,真是天才!