1/14/2019 8:20 PM | |
Joined: 10/24/2011 Last visit: 12/16/2024 Posts: 71 Rating:
|
Hello guys, I need some advice with PtP communication .... how must be correct chronological order and correct conditions for Send_P2P, Receive_P2P and ReceiveReset??? TIA Portal V14 CPU: CPU 1512SP F-1 PN CM: 6ES7137-6AA00-0BA0 - port config in HWconfig: 2400/parity-none/databits-8/stopbits-1/dataflowcontrol-none Communication partner: Programmable PSU ISOTECH 603 Baud rate: 2400 baud. Parity bit: none. Data bit: 8 bits. Stop bit: 1 stop bit. Data flow control: none. From user manual to PPSU is this information: "The power supply has 25 commands available. Every command is end up with(ASCII 0Dh or ACSCII 0D 0A acceptable). The return message of the power supply is CR/LF (ASCII 0D 0A)." But is here some commands which don´t have the return message, for example *SV Function: Set the output voltage value. Syntax: SV xx.xxx is a number between 0 and 9. Explain: The power supply will set the desired value of output voltage when the command is received. Example: SV 12.34 Set output voltage to 12.34V My code for set output voltage in DB for set parameters Name: SV_12 // DataType: String // Value: 'SV 12.00$R' Name: SV_12.Lenght // DataType: UInt // Value: 9 '$R' is <CR> as one char of string My code for send data without receive the return message CALL Send_P2P , "Send_P2P_DB" REQ :="SendData_SV_Req" PORT :="SNR-L2-M205-IM155-70A1~70A7CM_PtP_1" BUFFER :="PWRSourceCommand_DB".SV_12 LENGTH :="PWRSourceCommand_DB"."SV_12.Length" DONE :="SendData_Done" ERROR :="SendData_Error" STATUS :="SendData_Status" A "SendData_Done" R "SendData_SV_Req" I see some change in code of SendData_Status (16#7001,16#7002, 16#0000) if I set to "1" SendData_SV_Req but on the PPSU it does not do anything .....why why why .... yes I checked more time the connection between PPSU and PLC and code for send receive - here isn´t enable signal for Receive_P2P as in previous post on page 1 CALL Send_P2P , "Send_P2P_DB" REQ :="SendData_XX_Req" PORT :="SNR-L2-M205-IM155-70A1~70A7CM_PtP_1" BUFFER :="PWRSourceCommand_DB".xxxx LENGTH :="PWRSourceCommand_DB".Lengthxxxx DONE :="SendData_Done" ERROR :="SendData_Error" STATUS :="SendData_Status" A "SendData_Done" R "SendData_XX_Req" S "ReadyForReceive" A "ReadyForReceive" JCN M999 CALL Receive_P2P , "Receive_P2P_DB" PORT :="SNR-L2-M205-IM155-70A1~70A7CM_PtP_1" BUFFER :="PWRSourceCommand_DB".PWRSourceResponse NDR :="ReceiveData_NDR" ERROR :="ReceiveData_Error" STATUS :="ReceiveData_Status" LENGTH :="PWRSourceCommand_DB".ReceiveData_Length A "ReadyForReceive" R "ReadyForReceive" M999: NOP 0 Is the code correct??? In user manual is one strange information - see to attached screen For communication between PPSU and PC must be 12V on pin4, I don´t know if this same condition must be for communication between PLC and PPSU. thx for your help and sorry for long post J. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 1/15/2019 6:53:59 AMNew subject after splitting |
|
1/17/2019 5:59 AM | |
Joined: 10/24/2011 Last visit: 12/16/2024 Posts: 71 Rating:
|
Good morning, my problem is solved all information which I needed is in attached screenshot. J. AttachmentFunctionManual_CMPtPConfigurationsforpoint_to_point_connections_page91.pdf (652 Downloads) |
This contribution was helpful to
3 thankful Users |
Follow us on