I need to read some data from remote S7-400 (CPU414-1) PLC.
Local PLC is S7-400H (CPU412-3H). Comms is established theough ethernet CP 443-1.
If i do like this communication is running and I can read data from remote PLC without errors except that sometimes i get status code 25 (Communication has started. The job is being processed)
Local PLC is S7-400H (CPU412-3H). Comms is established theough ethernet CP 443-1.
If i do like this communication is running and I can read data from remote PLC without errors except that sometimes i get status code 25 (Communication has started. The job is being processed)
I tried to do like this:A M 0.7
S #PLC_COM.GET_REQ
CALL "GET" , "GET_Instance_DB"
REQ :=#PLC_COM.GET_REQ
ID :=#PLC_COM.ID
NDR :=#PLC_COM.GET_NDR
ERROR :=#PLC_COM.GET_ERROR
STATUS:=#PLC_COM.GET_STATUS
ADDR_1:=P#DB41.DBX2.0 BYTE 2
ADDR_2:=P#DB201.DBX0.0 BYTE 26
ADDR_3:=
ADDR_4:=
RD_1 :=P#DB401.DBX0.0 BYTE 2
RD_2 :=P#DB401.DBX6.0 BYTE 26
RD_3 :=
RD_4 :=
ON #PLC_COM.GET_NDR
O #PLC_COM.GET_ERROR
R #PLC_COM.GET_REQ
This way GET request processed only once i don't understand why because error and status outputs of GET block stays 0, so I think GET request processed succesfully and NDR output should be set to 1(NDR: 0 - Job not started or still active, 1 - Job successfully completed.), but it never goes 1 it stays 0.AN #PLC_COM.GET_REQ
S #PLC_COM.GET_REQ
CALL "GET" , "GET_Instance_DB"
REQ :=#PLC_COM.GET_REQ
ID :=#PLC_COM.ID
NDR :=#PLC_COM.GET_NDR
ERROR :=#PLC_COM.GET_ERROR
STATUS:=#PLC_COM.GET_STATUS
ADDR_1:=P#DB41.DBX2.0 BYTE 2
ADDR_2:=P#DB201.DBX0.0 BYTE 26
ADDR_3:=
ADDR_4:=
RD_1 :=P#DB401.DBX0.0 BYTE 2
RD_2 :=P#DB401.DBX6.0 BYTE 26
RD_3 :=
RD_4 :=
O #PLC_COM.GET_NDR
O #PLC_COM.GET_ERROR
R #PLC_COM.GET_REQ