You are currently viewing the content available in Vietnam. If you are looking for information for another region, please select the correct country from the top-left dropdown in the page and 'Navigate to Browse FAQs' in the Support menu.
Question:
How to read SDO from CANOpen device in MC80? in MC80 CANOpen device page, there is no a "CANOpen" tab like in M340, so how to sending SDO to a CANOpen device?
Answer:
For MC80, we can use READ_VAR and WRITE_VAR to read/write SDO.
the OBJ pin of READ_VAR and WRITE_VAR should be set to "SDO".
below is a demo code:
READ_VAR (ADR := ADDM('0.0.2.1'),
OBJ := 'SDO',
NUM := 16#000c2051,(* subindex:index *)
NB := 0,
GEST := Can_SDO_R1.Mange,
RECP => Can_SDO_R1.Data);
How to read SDO from CANOpen device in MC80? in MC80 CANOpen device page, there is no a "CANOpen" tab like in M340, so how to sending SDO to a CANOpen device?
Answer:
For MC80, we can use READ_VAR and WRITE_VAR to read/write SDO.
the OBJ pin of READ_VAR and WRITE_VAR should be set to "SDO".
below is a demo code:
READ_VAR (ADR := ADDM('0.0.2.1'),
OBJ := 'SDO',
NUM := 16#000c2051,(* subindex:index *)
NB := 0,
GEST := Can_SDO_R1.Mange,
RECP => Can_SDO_R1.Data);