plc - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2) +--- Thread: plc (/showthread.php?tid=1445) |
plc - balatis - 13.06.2018 hi i try to connect with a plc tm 2412 schneider , the network is modbus tcp. i create a json with only one variable . first i tested the variable from spacelyn with an other device( linkbox) and working after i testing the plc with with linkbox and it working but the plc with spacelynk can not connect . the json is "mapping": [ { "name": "Input 1", "bus_datatype": "float16", "type": "inputregister", "address": 1, "value_multiplier": 0.001, "units": "V"} ] } any help acceptable with appreciation. RE: plc - admin - 13.06.2018 Anything in Error logs? Try reading with a script and log the read result/error. RE: plc - balatis - 13.06.2018 (13.06.2018, 07:06)admin Wrote: Anything in Error logs? Try reading with a script and log the read result/error. in the error log nothing is clear ,i do not now if is correct the json ... how is possible to read with script ? thanks RE: plc - Daniel - 13.06.2018 Hi Stupid question, but did you map object to your registry? BR RE: plc - balatis - 13.06.2018 (13.06.2018, 12:05)Ντάνιελ. Wrote: Γεια ΗΙ . yes i can to shape the map in the plc now for test i use only one variable RE: plc - Daniel - 13.06.2018 I mean in LM not PLC RE: plc - balatis - 13.06.2018 (13.06.2018, 12:33)Daniel. Wrote: I mean in LM not PLC i have a value but is not realy with same setings the spacelynk working with an intesis box and plc working with intesis box RE: plc - Daniel - 13.06.2018 Then you have connection and you read a value. This means your conversion is wrong. By looking on the SoMachine This value is not float only int16 and you should not be using multiplayer. RE: plc - balatis - 13.06.2018 (13.06.2018, 13:06)Daniel. Wrote: Then you have connection and you read a value. This means your conversion is wrong. By looking on the SoMachine This value is not float only int16 and you should not be usingisis fault the json? the somachine has integer..... is possible to help me with json? RE: plc - Daniel - 13.06.2018 { "name": "Input 1", "bus_datatype": "int16", "type": "inputregister", "address": 1} Try this. RE: plc - balatis - 13.06.2018 (13.06.2018, 13:41)Daniel. Wrote: { "name": "Input 1", "bus_datatype": "int16", "type": "inputregister", "address": 1} now in the error log i have this tes (TCP 192.168.1.10:502) read failed: Illegal function RE: plc - admin - 13.06.2018 Try changing type to register |