News:

  • August 20, 2026, 01:39:59 AM

Login with username, password and session length

Author Topic: SSI Interface with DoMore?  (Read 13415 times)

Patriot

  • Newbie
  • *
  • Posts: 2
SSI Interface with DoMore?
« on: December 12, 2017, 08:58:46 PM »
Can I read an encoder with an SSI interface with a DoMore? Not familiar with this method at all, but curious none the less.I have other options, but thought it would be challenging.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: SSI Interface with DoMore?
« Reply #1 on: December 12, 2017, 11:51:13 PM »
There's no way to do it now. I had never heard of it before. It appears to be loosely related to SPI.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

DLTimmons

  • Hero Member
  • *****
  • Posts: 232
Re: SSI Interface with DoMore?
« Reply #2 on: December 13, 2017, 12:52:42 PM »
It a serial interface I have several laser distance sensor that use it. You have your data pair of wire then a clock pair so the transmitting source controls the clocking not a baud rate chip.

https://en.wikipedia.org/wiki/Synchronous_Serial_Interface

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: SSI Interface with DoMore?
« Reply #3 on: December 13, 2017, 01:31:00 PM »
It a serial interface I have several laser distance sensor that use it. You have your data pair of wire then a clock pair so the transmitting source controls the clocking not a baud rate chip.

https://en.wikipedia.org/wiki/Synchronous_Serial_Interface


It would be quite easy to implement. Not sure about market size though.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: SSI Interface with DoMore?
« Reply #4 on: December 13, 2017, 01:44:49 PM »
Actually...thinking about this more...

If you were really intent on reading a device and weren't super concerned about speed, you could probably bit bang BRX immediate outputs to create the clock, and use BRX interrupt inputs to read the changing input state. One fast output for the clock, one fast input for the interrupt trigger (opposite clock edge to data changes), and one fast input for the data. Gut tells me it would take ~500us to read an encoder (depending on resolution) but I think it could be pretty reliable. If the 500us (or more) scan bump didn't offend you, you could put the whole routine in a task block and fire it off whenever you wanted to update the encoder value.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: SSI Interface with DoMore?
« Reply #5 on: December 13, 2017, 01:51:58 PM »
We didn't do it...but if we were to implement an immediate input instruction, it would eliminate the interrupt input and would be quite a bit faster.

SETI Clock
RSTI Clock
INI Data
SETI Clock
RSTI Clock
INI Data
...etc
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: SSI Interface with DoMore?
« Reply #6 on: December 13, 2017, 03:41:30 PM »
We're implementing the immediate input instruction for BRX onboard inputs...PLC side is done. Embarrassingly easy.

It looks like the physical layer for SSI is RS485, so I'm not sure how the interface between single-ended I/O and differential pairs would work, but having a bit bang capability is useful for other things like SPI or I2C. For folks skilled in such things, many neat things are possible.

As an FYI, using a series of immediate output instructions, I can generate a clock of about 200kHz. That would drop a little once once the input instructions were thrown in, but it should still be 150kHz or better. Easily fast enough to sample something like an encoder.
« Last Edit: December 13, 2017, 03:43:15 PM by BobO »
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

DLTimmons

  • Hero Member
  • *****
  • Posts: 232
Re: SSI Interface with DoMore?
« Reply #7 on: December 14, 2017, 08:33:00 AM »
Would a FC-ISO-D Handle that?

ADC Product Engineer

  • Hero Member
  • *****
  • Posts: 270
Re: SSI Interface with DoMore?
« Reply #8 on: December 14, 2017, 08:47:34 AM »
it won't handle the clock because the FC-ISO-D can't transmit differential.  It could do the data however, although without the clock it's kinda useless.

MikeR

  • Full Member
  • ***
  • Posts: 24
Re: SSI Interface with DoMore?
« Reply #9 on: December 14, 2017, 09:54:56 AM »
SSI would be great. maybe a POM?
If I could use SSI sensors with BRX. I would use more BRX.

Patriot

  • Newbie
  • *
  • Posts: 2
Re: SSI Interface with DoMore?
« Reply #10 on: December 16, 2017, 08:04:13 AM »
If you really needed to use this type of device, this looks like an option.

http://www.bei-industrial-products.com/e_serial-converter.html....