GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SDAPLM/OpenSML: Open Sources SoftMotion Light For CiA402 Servo Drivers

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
OpenSML.library
OpenSML.library
 
 
OpenSML_Axis.txt
OpenSML_Axis.txt
 
 
OpenSML_Home.txt
OpenSML_Home.txt
 
 
OpenSML_Power.txt
OpenSML_Power.txt
 
 
OpenSML_ProfilePosition.txt
OpenSML_ProfilePosition.txt
 
 
OpenSML_ProfileVelocity.txt
OpenSML_ProfileVelocity.txt
 
 
OpenSML_Stop.txt
OpenSML_Stop.txt
 
 
OpenSML_SyncVelocity.txt
OpenSML_SyncVelocity.txt
 
 
README.md
README.md
 
 

Repository files navigation

OpenSML

Open Sources SoftMotion Light For CiA402 Servo Drivers

Tips:
Here you can found .library file for codesys and beckhoff, you can just import and test it, Thanks elconfa.
There is suggest to read keba servoone usermanual to get more information about cia402.
And if you have any questions please feel free to push your issues.

Why

codesys is the best plc programming platform. With the Raspberry Pi, you can get an advanced plc programming environment at a very low price.

However, the softmotion license was canceled in the latest version of codesys for raspberry pi. (> 3.5.14.40, which means Raspberry Pi 4 must pay to get a softmotion license)

The motion control used by most customers is very simple and does not involve interpolation motion.

This project aims to provide the open source cia402 motion library for codesys or twincat users.

Target

In theory, an interpolation procedure can be made, similar to CNC. I am still working hard for this, but time is not guaranteed.

How

I only use ST (Struct text language) programming and add as many comments as possible.

Example for MC_Power:

Power_X(Axis:=Axis_X,xEnable:=Enable);

Example for Home And Absolute Position Move:

CASE iState OF
	0:
		Power_X(Axis:=Axis_X,xEnable:=xStart);
		IF Power_X.xDone THEN
			iState:=10;
		END_IF;
	10:
		Home_X(Axis:=Axis_X , xEnable:=xHomeEnable);
		IF Home_X.xDone THEN
			iState:=20;
		END_IF
	20:
		ProfilePosition_X(
			Axis:=Axis_X , 
			xEnable:=xMoveEnable , 
			xExecute:=xMoveExecute , 
			xContinueMove:=FALSE , 
			xRelativeMode:=FALSE , 
			diTargetPosition:=diTarget , 
			udiProfileVelocity:=udiVel);
END_CASE

Example for Cyclic synchronous Velocity Mode:

Power_X(Axis:=Axis_X,xEnable:=Enable);
SyncVelocity_X(
	Axis:=Axis_X ,
	xEnable:=EnableMove ,
	diTargetVelocity:=diTargetVel ,
	rAcceleration:=10000 ,
	rDeceleration:=10000 ,
	diCycleTime:=1000 ,
	xError=>Error);

TODO

FuncBlock Status Name
Struct ✅ OpenSML_Axis
Power ✅ OpenSML_Power
Reset ✅ (use OpenSML_Power)
Home ✅ OpenSML_Home
Halt ✅ OpenSML_Stop
MoveAbsolute ✅ OpenSML_ProfilePosition
MoveVelocity ✅ OpenSML_ProfileVelocity
MoveRelative ✅ OpenSML_ProfilePosition
Stop ✅ OpenSML_Stop
Jog 🚧 -
TouchProbe 🚧 -
Cyclic Sync Velocity Mode ✅ OpenSML_SyncVelocity

About

Open Sources SoftMotion Light For CiA402 Servo Drivers

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.