Mesa 7i95
- myval
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 7
54 is fine but 55,56 keep saying they do not exist.
setp hm2_7i95.0.gpio.054.is_output true
setp hm2_7i95.0.gpio.055.is_output true # relay K410 output opto B1
setp hm2_7i95.0.gpio.056.is_output true
Please Log in or Create an account to join the conversation.
- myval
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 7
while I have you on the line and you seem to know a lot, what is the preferred or best way of creating bit more complex controls? Like if the logic is too much for HAL what would be on top of the list Python, Hal component generator or anything else?
I am not sure If I explain my self well.
Example I have some hydraulic to control so lot of lockouts and some timing and feedback. I could do it in HAL but that would be messy I guess. so what would be my first choice lets say the best performance reliable ops.....
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
- Posts: 18388
- Thank you received: 5020
is needed. Other options are application specific components either real time (in C)
or non-reatime (Python or whatever).
The output of mesaflash's --readhmid command and the list of parameters
from halcmd would be of help to debug the is_output issue.
It may also be something wrong with the bitfile
(Since the stock 7I95 bitfile works)
Please Log in or Create an account to join the conversation.
- myval
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 7
iIl will try to dig into that output tomorrow. Might even load stock bit and check that.
Please Log in or Create an account to join the conversation.
- myval
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 7
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23230
- Thank you received: 4904
You can do quite a lot of this sort of interlocking with LUT5, this allows the state of a single output to be defined for every possible combination of five inputs.Example I have some hydraulic to control so lot of lockouts and some timing and feedback. I could do it in HAL but that would be messy I guess. so what would be my first choice lets say the best performance reliable ops.....
It becomes especially useful if one of the five inputs is driven by the output.
As I have never learned Classic Ladder, but I do know C, as the next stage of complexity I write custom HAL components using halcompile.
Please Log in or Create an account to join the conversation.
- myval
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 7
I don't know the classic ladder and i have not actually come across the lut5 will have to do some reading on in.
Since most of the stuff i needed was non realtime i actually opted for python. Python seem to be the easiest to get going and fairly easy to debug.
When i have i minute i would like to try the halcompile.
Please Log in or Create an account to join the conversation.
- myval
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 7
How do i connect pendant to 7i95? I already have 5 encoder inputs in use and thinking about adding another axis in the future and P1 connector is fully in use too.
Do i go for something like 7i73 connected via rs422?
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
- Posts: 18388
- Thank you received: 5020
there are 4 MPG channels available on the isolated inputs:
hm2_7i95.0.inm.00.enc0-count (isolated inputs 0,1)
hm2_7i95.0.inm.00.enc1-count (isolated inputs 2,3)
hm2_7i95.0.inm.00.enc2-count (isolated inputs 4,5)
hm2_7i95.0.inm.00.enc3-count (isolated inputs 6,7)
Please Log in or Create an account to join the conversation.
- myval
- Offline
- Premium Member
-
- Posts: 137
- Thank you received: 7
I can use it there (if I can remap it to TB5) for time being but I think I will order 7I73 (unless there is a better board to get) I will install it in the pendant and run only RS422 to the board which in my mind will be neater solution.
What do you reckon?
Please Log in or Create an account to join the conversation.