Welcome, Guest
Messages posted to this category need to be reviewed by the moderator before it gets posted.
  • Page:
  • 1
  • 2

TOPIC: SmartMotor to Unity

Re: SmartMotor to Unity 3 years 10 months ago #2104

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 460
  • Thank you received: 77
  • Karma: 23
I don't know of anyone here who has done it. If might be helpful to set up a sniffer to make sure the response is actually occurring.
Attachments:
The administrator has disabled public write access.

Re: SmartMotor to Unity 3 years 10 months ago #2105

  • Rassel30
  • Rassel30's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
I was finally able to write to the user variables but what I'm unsure of is how to call subroutines. The document you posted just describes the "GOSUB(value)" command but it doesn't explain much more than that. Does this have to be a string command in my PLC that writes out the command?
The administrator has disabled public write access.

Re: SmartMotor to Unity 3 years 10 months ago #2106

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 460
  • Thank you received: 77
  • Karma: 23
I don't think you have to use any strings. I think you just have to write the value of the subroutine (ex. 123 would call C123 in your user program) into 0x8004 ...but I remember something about registers being indexed from 0 or 1... so that may need to be 0x8003 or ox8005 ;)
Also... what firmware did you say you had on the motor? There was a bug in one of the earlier versions.
The administrator has disabled public write access.
The following user(s) said Thank You: Rassel30

Re: SmartMotor to Unity 3 years 10 months ago #2107

  • Rassel30
  • Rassel30's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
Ok I'll try that. So basically if I have a subroutine of C50, I should be able to write 50 to the 0x8004 address and it should call C50. The firmware I have is 5.0.4.8.

Again thanks for the help!
The administrator has disabled public write access.

Re: SmartMotor to Unity 3 years 10 months ago #2109

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 460
  • Thank you received: 77
  • Karma: 23
Oops... I just got an email from one of our firmware guys. There is still a bug in 5.0.4.8 that keeps the GOSUB from working... and that's the latest release. I "might" be able to get a beta release to send to you ...but you'll have to treat it as such... and not distribute it.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.154 seconds
Powered by Kunena Forum