mac_g3 Posted September 1, 2006 Report Posted September 1, 2006 Hello Simatic Users. I'm French .. and my English is not good ;-o) -Anyone know if Step7 have a special block to convert Gray code (from absolute encoder) to binary or decimal code ? Any helps greatly appreciated. Greetings from France. Stéphane. Quote
Groo Posted September 1, 2006 Report Posted September 1, 2006 try this link http://support.automation.siemens.com/WW/l...mp;x=15&y=9 tech help. There are six functions altogether that you can use for converting binary code to Gray code (FC103, FC104, FC105) and from Gray code to binary code (FC100, FC101, FC102). Quote
plcchecker Posted September 8, 2006 Report Posted September 8, 2006 this one can help GRAY_D8 GRAY_D16 GRAY_D32 Quote
mac_g3 Posted September 8, 2006 Author Report Posted September 8, 2006 Hello. Thanks for yours answers. -The Siemens website with the special blocks .. is not free ..( i don't understand why Siemens get the files with money (avc card) .... .... The other brand of PLC .. is FREE !!! Siemens ... = !!!! -The sps-concept link files is only a cutview ... the files don't show the entire source code !!. If anyone have idea .... Stephane. Quote
panic mode Posted September 10, 2006 Report Posted September 10, 2006 dead simple to do with only few rungs, here is AB code but it's just ladder 14bitgray.pdf Quote
jacekd Posted October 16, 2006 Report Posted October 16, 2006 Try this: L "gray_number" //up to 32 bits PUSH SRD 16 XOD PUSH SRD 8 XOD PUSH SRD 4 XOD PUSH SRD 2 XOD PUSH SRD 1 XOD T "bin_number" Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.