---
updatedAt: 2026-08-14T11:43:40.000Z
agentTools:
  siteIndex: https://docs.cielo.com.br/llms.txt
  projectIndex: https://docs.cielo.com.br/conecta/llms.txt
---

# PPC_CMD_TAB_LOAD 

Este comando efetua o processo completo de carga de novas tabelas no pin pad. Em caso de erro, as tabelas anteriores são mantidas.

# Parâmetros de entrada

| Constante         | Presença | Observação                                                                                       |
| ----------------- | -------- | ------------------------------------------------------------------------------------------------ |
| PPC\_INP\_INITVER | M        | Últimos 10 caracteres da Versão da Inicialização. Corresponde a `JSON{"InitializationVersion"}`. |
| PPC\_INP\_TABAID  | M        | Corresponde a `JSON{"AidParameters"}`.                                                           |
| PPC\_INP\_TABCAPK | M        | Corresponde a `JSON{"PublicKeys"}`.                                                              |

# Dados de resposta

Não há.

# Retornos

| Retorno        | Descrição                                             |
| -------------- | ----------------------------------------------------- |
| PPC\_OK        | Tabelas atualizadas com sucesso.                      |
| PPC\_NOTOPEN   | O comando `PPC_CMD_OPEN` não foi chamado previamente. |
| PPC\_ERRMANDAT | Um parâmetro mandatório não foi fornecido.            |

Outros retornos: Ver [Códigos de retorno](https://docs.cielo.com.br/conecta/docs/codigos-de-retorno-1).

# Exemplo

```text
int iCheckTables (const char *pszInitializationVersion, 
                  const char *pszAidParameters, 
                  const char *pszPublicKeys) 
{ 
   int iSt; 
   char szTableVer[11]; 

   iSt = PPC_ExecCmdNBlk (PPC_CMD_TAB_VER); 
   if (iSt != PPC_OK) return iSt; 

   PPC_GetResp (PPC_OUT_TABVER, sizeof (szTableVer), szTableVer); 
   if (!strcmp (&pszInitializationVersion[3], szTableVer) 
      return PPC_OK; // Se 10 últimos carateres forem iguais, sai OK. 

   PPC_SetParam (PPC_INP_INITVER, &pszInitializationVersion[3], 10); 
   PPC_SetParam (PPC_INP_TABAID, pszAidParameters, -1); 
   PPC_SetParam (PPC_INP_TABCAPK, pszPublicKeys, -1); 

   iSt = PPC_ExecCmdNBlk (PPC_CMD_TAB_LOAD); 
   return iSt; 
} 
```