- Posts: 1111
- Thank you received: 0
connect 2 Lcnc machine using mb2hal
3 years 10 months ago #260322
by bkt
connect 2 Lcnc machine using mb2hal was created by bkt
Because nee only few bit exchange, I find convenient using mb2hal .... tcp is better ....but not undertand if possible connect ... not remember if server/client situation was supported or not .... any how if supported was the right ini file to write?...example ...
then client side ..
thnaks for any suggest
Code:
/* server side I supposed */[MB2HAL_INIT]
INIT_DEBUG=3
SLOWDOWN=0.0
TOTAL_TRANSACTIONS=5
[TRANSACTION_00]
#Manually change values in Mod_RsSim and see result here
LINK_TYPE=tcp
TCP_IP=192.168.2.10
TCP_PORT=5002
MB_SLAVE_ID=0
MB_TX_CODE=fnct_02_read_discrete_inputs
FIRST_ELEMENT=1
NELEMENTS=8
HAL_TX_NAME=rd_di
MAX_UPDATE_RATE=0.0
DEBUG=1
then client side ..
Code:
/* server side I supposed */[MB2HAL_INIT]
INIT_DEBUG=3
SLOWDOWN=0.0
TOTAL_TRANSACTIONS=5
[TRANSACTION_00]
#Manually change values in Mod_RsSim and see result here
LINK_TYPE=tcp
TCP_IP=192.168.2.09
TCP_PORT=5002
MB_SLAVE_ID=0 ####<---- is right?? or was MB_SERVER_ID??? or nothing??
MB_TX_CODE=fnct_02_read_discrete_inputs
FIRST_ELEMENT=1
NELEMENTS=8
HAL_TX_NAME=rd_di
MAX_UPDATE_RATE=0.0
DEBUG=1
thnaks for any suggest
Please Log in to join the conversation.
3 years 10 months ago #260336
by JPL
Replied by JPL on topic connect 2 Lcnc machine using mb2hal
Please Log in to join the conversation.
3 years 10 months ago #260342
by db1981
Replied by db1981 on topic connect 2 Lcnc machine using mb2hal
Please Log in to join the conversation.
3 years 10 months ago #260438
by bkt
Replied by bkt on topic connect 2 Lcnc machine using mb2hal
I see on git previously .... seems install with sudo make install .... but not understand usages so no try .... seems simple add loadusr -mbslave /mypath/myconfig.xml to my hal file? .... READ:ME file is a little "short" ... someone have try?
Please Log in to join the conversation.
3 years 10 months ago #260439
by JPL
Replied by JPL on topic connect 2 Lcnc machine using mb2hal
There is an examples file 'mbslave-conf.xml' (in the examples directory). I did not try but would expect the pins listed in the xml to show up in HAL.
Please Log in to join the conversation.
Time to create page: 0.079 seconds
