Hi,
Is it possible for Nirtec Studio to make a new video on connecting Twincat 3 with Machine simulator , I found this video on your Youtube channel https://www.youtube.com/watch?v=I3NCC7WVfvk and its quite old. Hopefully direct connection to Machine simulator without the need of running easy plc ( modbus or opc ua ) .
Now the connection is made directly with Machines Simulator without EasyPLC, but the driver configuration is the same.
okak , i will try my best to follow the tutorial , its hard to see the text as its all blurry .
Hi,
can you please make a update version for machine simulator version 4 .
Also what addons do i need and activate on twincat 3 inorder to connect .
thank you for any help .
-v
Hi ,
Am using the currect settings LFB_MBReadInputs(
sIPAddr := '127.0.0.1',
nTCPPort := 502,
nUnitID := 255,
nQuantity := 16,
nMBAddr := 0,
cbLength := SIZEOF(GAB_MIO_Inputs),
pDestAddr := ADR(GAB_MIO_Inputs),
bExecute := TRUE,
tTimeout := T#1S,
bBusy => LX_Busy,
bError => LX_Error,
nErrId => LD_nErrorId,
cbRead => LD_cbRead,
);
LFB_MBReadInputs(bExecute := FALSE);
And the image settings in the machine simulator . But i am getting ErrorID 32770.
My global variable are as follows
VAR_GLOBAL
GAB_Inputs : ARRAY [0..1] OF BYTE;
GAB_Outputs : ARRAY [0..1] OF BYTE;
GAB_Inputs_Register : ARRAY [0..7] OF INT;
GAB_Outputs_Register : ARRAY [0..7] OF INT;
END_VAR
And am using beckhoffs T6250 for communication .
Thank you for your time.
Hi ,
@EasyPLC_Master I tried connecting to other Modbus server using QModMaster/ Modbus poll without any error , But when i try the same with Machine Simulator , I get an Illegal address error . I dont think its a network problem and both modbus servers have the same permissions. Is there any other way to check if the server is actually running ?
Thank you for any help .
-v
Hello! take a look to these videos using the Modbus driver, perhaps could serve as help:
hi , thank you for the video . but i still connect to the modbus server created from this software . Can you check the image and tell me what i am doing wrong , I tried all the combination of settings and when I read/write anything . I get illegal address error . I have connected at my ethernet card address also as shown in the first video with no success.
I think i have my settings wrong , as i can connect to other modbus server created in my computer using the software . if you have any tips on what settings to use that would help a lot .
If QModMaster is a ModBus server you can not use the Machines Simulator Modbus Server driver.
In this case use the Machines Simulator Modbus Driver that is client!!!
Hi , Sorry I made a mistake while explaining .
I am Creating a Modbus server in Machine simulator using the settings shown in the picture.
I am connecting to this server using the Qmodmaster software, i can connect to the server( both on 127.0.0.1 and my ether ip address as shown in the youtube video you posted) .
But i cannot read or write to them, i get "Illegal address error" ( i set no of coils to '8' eventhough its shown in the picture as '11' ) .
I have shown you all the setting provided for reading and writing in the software , can you please test or suggest what setting to use .
The software is opensource.
Thank you for taking the time to help .
-v