codesys

How in codesys call an “at command” for gsm modem? Not standart send_sms and e.t.c

馋奶兔 提交于 2019-11-27 02:13:35
I have a gsm-modem and plc, plc sees a modem (I use a *.lib and functional block "openPort"), but I don't understand how write in modem an "at command", for example, "ate0". First, to increase your understanding of AT commands in general, read the V. 250 specification . That will go a long way in making you an AT command expert. Then for the actual implementation, I do not know codesys, so the following is pseudo code of the structure you should have for handling AT commands: the_modem = openPort(); ... // start sending ATE0 writePort(the_modem, "ATE0\r"); do { line = readLinePort(the_modem);

How in codesys call an “at command” for gsm modem? Not standart send_sms and e.t.c

筅森魡賤 提交于 2019-11-26 12:33:50
问题 I have a gsm-modem and plc, plc sees a modem (I use a *.lib and functional block \"openPort\"), but I don\'t understand how write in modem an \"at command\", for example, \"ate0\". 回答1: First, to increase your understanding of AT commands in general, read the V.250 specification. That will go a long way in making you an AT command expert. Then for the actual implementation, I do not know codesys, so the following is pseudo code of the structure you should have for handling AT commands: the